示例#1
0
    public static ActorTwo_StateTwo Instance()
    {
        if (instance == null)
        {
            instance = new ActorTwo_StateTwo();
        }

        return(instance);
    }
示例#2
0
    public override bool OnMessage(ActorTwo Entity, Telegram telegram)
    {
        if (telegram.Msg == (int)message_type.msg_oneMessage)
        {
            Debug.Log(Entity.GetType() + " receive " + EntityManager.Instance().GetEntityFromID(telegram.Sender) + " message ");
            Entity.GetFSM().ChangeState(ActorTwo_StateTwo.Instance());
            Debug.Log(Entity.GetType() + " change State to ActorTwo_StateTwo");
            return(true);
        }



        return(false);
    }