Esempio n. 1
0
        public void Enter(EnemyBoardObject owner)
        {
            _owner   = owner;
            _thinker = _owner.GetComponent <AIThinker>();

            _player = _owner._playerObject;
        }
Esempio n. 2
0
    protected override void Awake()
    {
        base.Awake();
        _health  = GetComponent <BoardHealth>();
        _stamina = GetComponent <BoardStamina>();
        _thinker = GetComponent <AI.AIThinker>();

        _playerObject = FindObjectOfType <PlayerBoardObject>();

        EnemyID = LastID++;
    }