Exemple #1
0
    public override void StateStart()
    {
        lifeTimer = GameObject.FindGameObjectWithTag("LifeTimer").GetComponent<LifeTimer>();
        Siasaki = GameObject.FindGameObjectWithTag("Player").GetComponent<SiasakiChanController>();
        questFactory = GameObject.FindGameObjectWithTag("QuestFactory").GetComponent<QuestFactory>();
        yakubin = this.Siasaki.yakubin.GetComponent<Yakubin>();

        questFactory.InstantQuest();
        lifeTimer.isStop = false;

        //コールバック登録
        Siasaki.NomikomuCallback += NomikomiEvent;
        Siasaki.Nomikomu_to_Idle_Callback += Nomikomu_to_Idle_Event;
        Siasaki.CreateYakuCallback += CreateYakuEvent;
        Siasaki.Damage_to_Idle_Callback += Damage_to_Idle_Event;
        questFactory.DestroyQuestCallBack += QuestTimeUpEvent;
    }