public void Enter(EnemyBoardObject owner) { _owner = owner; _thinker = _owner.GetComponent <AIThinker>(); _player = _owner._playerObject; }
protected override void Awake() { base.Awake(); _health = GetComponent <BoardHealth>(); _stamina = GetComponent <BoardStamina>(); _thinker = GetComponent <AI.AIThinker>(); _playerObject = FindObjectOfType <PlayerBoardObject>(); EnemyID = LastID++; }