Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 444 Bytes
using System;
using System.Collections.Generic;
using UnityEngine;
namespace AI
{
public class StateTransition
{
private Func<bool> _condition;
public StateTransition(State to, Func<bool> condition)
{
To = to;
_condition = condition;
}
public bool Check()
{
return (_condition());
}
public State To { get; private set; }
}
}