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

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

        _playerObject = FindObjectOfType <PlayerBoardObject>();

        EnemyID = LastID++;
    }