示例#1
0
 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();
 }
示例#2
0
 public abstract bool Verified(LZFighter fighter);
示例#3
0
 public void Initialize(LZFighter fighter, StateMachine machine)
 {
     this.fighter = fighter;
     this.machine = machine;
     time         = new FrameTimer();
 }
示例#4
0
 public virtual void Initialize(LZFighter fighter)
 {
     this.fighter = fighter;
 }
 public MiniScriptMachine(LZFighter fighter)
 {
     this.fighter = fighter;
 }
示例#6
0
 public override bool Verified(LZFighter fighter)
 {
     return(Vector2.Dot(direction, fighter.GetVelocity().normalized) > threshold);
 }