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

        if (_target != null)
        {
            target = _target.GetComponent <BotSensorySystem>();
        }
    }