Exemplo n.º 1
0
 protected virtual void OnEndDialog(Message msg)
 {
     if (msg != null && msg.GetMessageStr("dialog").Equals(stateMachine.GetDialogName()))
     {
         Debug.Log("On End Dialog " + msg.GetMessage("dialog").ToString());
         stateMachine.OnEndDialog();
     }
 }
Exemplo n.º 2
0
    void OnBeginState(Message msg)
    {
        string stateName = msg.GetMessageStr("name");

        Debug.Log("OnBeginState in Scene TL" + stateName );

        if( stateName == "SStormIII")
        {
            MakeThunder();
        }
    }
Exemplo n.º 3
0
    void OnBeginState(Message msg)
    {
        string name = msg.GetMessageStr("name");
        if (name == "ChoiceAct")
        {
            Choice1.SetActive(true);
            FadeInChoice(Choice1);
        }
        if (name == "ChoiceItem")
        {
            Choice2.SetActive(true);
            FadeInChoice(Choice2);
        }

        if (name == "FindSpider")
        {
            foreach(GameObject door in DoorFormer)
                door.SetActive(false);

            foreach(GameObject door in DoorLater)
                door.SetActive(true);
        }

        if (name == "Fix")
        {
            GotoScene("Level-0");

            foreach(GameObject obj in BalloonBefore)
                obj.SetActive(false);

            foreach(GameObject obj in BalloonAfter)
                obj.SetActive(true);
        }

        if (name == "End")
        {
            EventManager.Instance.PostEvent(EventDefine.LEAVE_ISLAND);
        }
    }
Exemplo n.º 4
0
    // [SerializeField] GameObject Cone;
    void OnBeginState(Message msg)
    {
        string name = msg.GetMessageStr("name");

        // if (name == "Cone")
    }