Esempio n. 1
0
    public override void FillStates(JMStateMachine StateMachine)
    {
        base.FillStates(StateMachine);

        StateMachine.AddState("MoveToLeft", new JMCS_B_MoveToLeft());
        StateMachine.AddState("MoveToRight", new JMCS_B_MoveToRight());
        StateMachine.AddState("MoveToForward", new JMCS_B_MoveToForward());
        StateMachine.AddState("Dead", new JMCS_B_Dead());
    }
Esempio n. 2
0
 public void Init()
 {
     StateMachine = new JMStateMachine();
     FillStateScript.FillStates(StateMachine);
     StateMachine.InitStates(this);
 }
Esempio n. 3
0
 public virtual void FillStates(JMStateMachine StateMachine)
 {
     StateMachine.SetDefaultStateName(DefaultStateName);
 }
Esempio n. 4
0
    public override void FillStates(JMStateMachine StateMachine)
    {
        base.FillStates(StateMachine);

        StateMachine.AddState("Idle", new JMPS_B_Idle());
    }