Пример #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;
 }
Пример #5
0
 public MiniScriptMachine(LZFighter fighter)
 {
     this.fighter = fighter;
 }
Пример #6
0
 public override bool Verified(LZFighter fighter)
 {
     return(Vector2.Dot(direction, fighter.GetVelocity().normalized) > threshold);
 }