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

        return(playerSeen);
    }