Quantum-Engineering/IronBlock.cs

21 lines
476 B
C#
Raw Normal View History

using UnityEngine;
public class IronBlock : MonoBehaviour
{
public string ID = "unassigned";
public string creationMethod;
public int address;
private float updateTick;
2020-09-03 03:09:26 -04:00
// Called once per frame by unity engine
public void Update()
{
updateTick += 1 * Time.deltaTime;
if (updateTick > 0.5f + (address * 0.001f))
{
GetComponent<PhysicsHandler>().UpdatePhysics();
updateTick = 0;
}
}
}