コード例 #1
0
    void Update()
    {
        s_Ove.ActiveOve();
        s_Switch.ActiveSwitch();
        s_Switch2.ActiveSwitch();
        s_Switch3.ActiveSwitch();
        s_Switch4.ActiveSwitch();
        s_Flower1.ActiveFlower(s_Switch);
        s_Flower2.ActiveFlower(s_Switch);
        s_Flower3.ActiveFlower(s_Switch);
        s_RotateStep.ActiveRotateStep(s_Switch4);
        s_Ladder.ActiveLadderCheck();
        s_RailStep1.ActiveStep(s_Switch2);

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            s_Ove.transform.parent    = s_Tower.transform.parent;
            s_StageManager.stageState = StageManager.StageState.Stage0;
        }

        if (s_Switch4.switchState)
        {
            s_Tower.gameObject.SetActive(true);
        }

        if (s_Switch3.switchState)
        {
            if (!b_IsOnStep1)
            {
                StartCoroutine(DisalbeTimeStep1());
                b_IsOnStep1 = !b_IsOnStep1;
            }

            if (!b_IsOnStep2)
            {
                StartCoroutine(DisalbeTimeStep2());
                b_IsOnStep2 = !b_IsOnStep2;
            }
        }

        else
        {
            t_TimeStep1.gameObject.SetActive(false);
            t_TimeStep2.gameObject.SetActive(false);
            b_IsOnStep1 = false;
            b_IsOnStep2 = false;
        }
    }
コード例 #2
0
ファイル: Stage8Manager.cs プロジェクト: catSirup/TheLantern
    void Update()
    {
        s_Switch1.ActiveSwitch();
        s_Switch.ActiveSwitch();
        s_Ove.ActiveOve();
        s_Flower1.ActiveFlower(s_Switch);
        s_Flower2.ActiveFlower(s_Switch);
        s_Flower3.ActiveFlower(s_Switch);
        s_RailStep.ActiveStep(s_Switch1);
        s_Tower.ActiveTower();

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            s_Ove.transform.parent    = s_Tower.transform.parent;
            s_StageManager.stageState = StageManager.StageState.Stage0;
        }
    }