public static int GetDesireKey(AIProject.EventType type) { foreach (ValueTuple <AIProject.EventType, Desire.Type> valuePair in Desire.ValuePairs) { if (type == (AIProject.EventType)valuePair.Item1) { return(Desire.GetDesireKey((Desire.Type)valuePair.Item2)); } } return(-1); }
public override void Release(Actor actor, AIProject.EventType type) { this.OnRelease(actor as PlayerActor); }