Quantum-Engineering/IronBlock.cs

28 lines
588 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IronBlock : MonoBehaviour
{
public string ID = "unassigned";
public string creationMethod;
public int address;
private float updateTick;
void Start()
{
}
void Update()
{
updateTick += 1 * Time.deltaTime;
if (updateTick > 0.5f + (address * 0.001f))
{
//Debug.Log(ID + " Physics update tick: " + address * 0.1f);
GetComponent<PhysicsHandler>().UpdatePhysics();
updateTick = 0;
}
}
}