Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / Navmesh / Conditions / PlayerSightCondition.cs
@Rackday Rackday on 21 Aug 335 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [CreateAssetMenu(menuName = "Finite State Machine/Condition/Player Sight")]
  5. public class PlayerSightCondition : Condition
  6. {
  7. protected override bool Test(FiniteStateMachine fsm)
  8. {
  9. return PlayerSight.canSee.Contains(fsm.gameObject);
  10. }
  11. }