Beispiel #1
0
 private void Attack(EnemyStateController controller)
 {
     if (controller.PlayerSeen() && Vector2.Distance(controller.transform.position, controller.HeroTransform.position) <= controller.Stats.AttackRange)
     {
         controller.Attack();
     }
 }
Beispiel #2
0
    private bool Look(EnemyStateController controller)
    {
        bool playerSeen = controller.PlayerSeen();

        return(playerSeen);
    }