private void Start() { myRigidBody = GetComponent <Rigidbody2D>(); mySensorSystem = GetComponent <BotSensorySystem>(); timeToNextCalc = 0.0f; isInhibited = false; }
public void SetTarget(GameObject _target) { target = null; if (_target != null) { target = _target.GetComponent <BotSensorySystem>(); } }