Пример #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());
    }
Пример #2
0
 public void Init()
 {
     StateMachine = new JMStateMachine();
     FillStateScript.FillStates(StateMachine);
     StateMachine.InitStates(this);
 }
Пример #3
0
 public virtual void FillStates(JMStateMachine StateMachine)
 {
     StateMachine.SetDefaultStateName(DefaultStateName);
 }
Пример #4
0
    public override void FillStates(JMStateMachine StateMachine)
    {
        base.FillStates(StateMachine);

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