public void Initialize(LZFighter fighter) { this.fighter = fighter; foreach (var s in states) { s.Initialize(fighter, this); } for (int i = 0; i < states.Count; i++) { states[i].containedNodes = states.FindAll((s) => s.parent == i).ConvertAll((s) => states.FindIndex((a) => a == s)); } time = new FrameTimer(); }
public abstract bool Verified(LZFighter fighter);
public void Initialize(LZFighter fighter, StateMachine machine) { this.fighter = fighter; this.machine = machine; time = new FrameTimer(); }
public virtual void Initialize(LZFighter fighter) { this.fighter = fighter; }
public MiniScriptMachine(LZFighter fighter) { this.fighter = fighter; }
public override bool Verified(LZFighter fighter) { return(Vector2.Dot(direction, fighter.GetVelocity().normalized) > threshold); }