public override void Execute(ActorOne Entity) { Debug.Log(Entity.GetType() + "::Execute ActorOne_StateOne "); Debug.Log(Entity.GetType() + " ChangeState to ActorOne_StateTwo"); Entity.GetFSM().ChangeState(ActorOne_StateTwo.Instance()); //base.Execute (Entity); }
public static ActorOne_StateTwo Instance() { if (instance == null) { instance = new ActorOne_StateTwo(); } return(instance); }