Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / Navmesh / Conditions / PlayerSightCondition.cs
@Rackday Rackday on 21 Aug 335 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "Finite State Machine/Condition/Player Sight")]
public class PlayerSightCondition : Condition
{
    protected override bool Test(FiniteStateMachine fsm)
    {
        return PlayerSight.canSee.Contains(fsm.gameObject);
    }
}