예제 #1
0
    /// <summary>
    /// 觸發事件
    /// </summary>
    void TriggerEvent()
    {
        switch (Events[NextEvent])
        {
        case MilestoneEvent.Monster:
            FightScene.MeetEnemy(MonsterGetter.GetMonsterDicsFromEvent(MyAdventure.MonsterEvent));    //遭遇敵人
            break;

        case MilestoneEvent.Accident:
            CharaDataUI.ShowCharas(false);                                                      //隱藏腳色資料介面
            AccidentUI.CallAccident(EventGetter.GetAccidentInGroup(MyAdventure.AccidentGroup)); //呼叫意外事件
            FightScene.AccidentEvent();                                                         //遭遇意外事件
            break;

        case MilestoneEvent.Investigate:
            CharaDataUI.ShowCharas(false);                                                                  //隱藏腳色資料介面
            InvestigateUI.CallInvestigate(EventGetter.GetInvestigateInGroup(MyAdventure.InvestigateGroup)); //呼叫調查事件
            FightScene.InvestigateEvent();                                                                  //遭遇調查事件
            break;

        case MilestoneEvent.Camp:
            CharaDataUI.ShowCharas(false);                                      //隱藏腳色資料介面
            CampUI.CallCamp(EventGetter.GetCampInGroup(MyAdventure.CampGroup)); //呼叫紮營事件
            FightScene.InvestigateEvent();                                      //遭遇調查事件
            break;
        }
        NextEvent++;
    }
예제 #2
0
 public void Init()
 {
     MyInvestigateUI = transform.FindChild("Investigate").GetComponent <InvestigateUI>();
     MyInvestigateUI.Init();
     MyResultUI = transform.FindChild("Result").GetComponent <ResultUI>();
     MyResultUI.Init();
     MyAccidentUI = transform.FindChild("Accident").GetComponent <AccidentUI>();
     MyAccidentUI.Init();
     MyCampUI = transform.FindChild("Camp").GetComponent <CampUI>();
     MyCampUI.Init();
 }
예제 #3
0
 public void Init()
 {
     MyInvestigateUI = transform.FindChild("Investigate").GetComponent<InvestigateUI>();
     MyInvestigateUI.Init();
     MyResultUI = transform.FindChild("Result").GetComponent<ResultUI>();
     MyResultUI.Init();
     MyAccidentUI = transform.FindChild("Accident").GetComponent<AccidentUI>();
     MyAccidentUI.Init();
     MyCampUI = transform.FindChild("Camp").GetComponent<CampUI>();
     MyCampUI.Init();
 }
예제 #4
0
    /// <summary>
    /// 初始化
    /// </summary>
    public void Init()
    {
        MyGameobject = gameObject;
        MyAccident = this;

        //情境
        Go_Scenario = transform.FindChild("Scenario").gameObject;
        Text_Scenario = Go_Scenario.transform.FindChild("description").GetComponent<Text>();
        //回饋
        Go_Process = transform.FindChild("Process").gameObject;
        Text_Process = Go_Process.transform.FindChild("description").GetComponent<Text>();
        ShowAccidentUI(false);
    }
예제 #5
0
    /// <summary>
    /// 初始化
    /// </summary>
    public void Init()
    {
        MyGameobject = gameObject;
        MyAccident   = this;

        //情境
        Go_Scenario   = transform.FindChild("Scenario").gameObject;
        Text_Scenario = Go_Scenario.transform.FindChild("description").GetComponent <Text>();
        //回饋
        Go_Process   = transform.FindChild("Process").gameObject;
        Text_Process = Go_Process.transform.FindChild("description").GetComponent <Text>();
        ShowAccidentUI(false);
    }