public override void SetTransitions() { base.SetTransitions(); List <NextStateInfo> nextStatesInfo2 = new List <NextStateInfo>() { new NextStateInfo(this, STATE.Attack, STATE.Remain, GetComponent <AttackOrder>()), new NextStateInfo(this, STATE.Move, STATE.Remain, GetComponent <MoveOrder>()) }; FSMSystem.AddTransition(this, STATE.Idle, nextStatesInfo2); List <NextStateInfo> nextStateInfo3 = new List <NextStateInfo>() { new NextStateInfo(this, STATE.Idle, STATE.Remain, GetComponent <IdleOrder>()) }; FSMSystem.AddTransition(this, STATE.Move, nextStateInfo3); List <NextStateInfo> nextStateInfo4 = new List <NextStateInfo>() { new NextStateInfo(this, STATE.Idle, STATE.Remain, GetComponent <IdleOrder>()) }; FSMSystem.AddTransition(this, STATE.Attack, nextStateInfo4); }