void SetInitialReferences()
 {
     _animator      = GetComponent <Animator>();
     _botMaster     = GetComponent <BotMaster>();
     _enemyNavPause = GetComponent <BotNavPause>();
     _botMedic      = GetComponent <BotMedic>();
     _myTransform   = transform;
 }
Beispiel #2
0
    void SetInitialReferences()
    {
        _botMaster   = GetComponent <BotMaster>();
        _botMedic    = GetComponent <BotMedic>();
        _myTransform = transform;

        if (_head == null)
        {
            _head = _myTransform;
        }

        _checkRate = Random.Range(0.8f, 1.2f);
    }