예제 #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);
 }