Ejemplo n.º 1
0
 //------------------------------------------------------------------------------------------
 // スタート中処理
 //------------------------------------------------------------------------------------------
 private void UpdateStart()
 {
     waitTime -= Time.deltaTime;
     if (waitTime <= 0.0f)
     {
         state = PlayState.Playing;
         GameObject go = GameObject.Find(AreaNameScript.NAME);
         if (go)
         {
             var areaNameScript = go.GetComponent <AreaNameScript>();
             if (Data.stage_number > 0)
             {
                 string text = "第" + (Data.stage_number) + "区画";
                 areaNameScript.ShowAreaName(text, 1.0f, 2.0f);
                 // ポーズ可能にする
                 pauseManager.EnablePauseButton(true);
             }
             else if (Data.stage_number == 0)
             {
                 areaNameScript.ShowAreaName("チュートリアル", 1.0f, 2.0f);
                 areaNameScript.SetOutlineColor(new Color(0.08f, 0.36f, 0, 0.5f));
                 areaNameScript.SetBackColor(new Color(0.3f, 0.9f, 0, 0.5f));
                 areaNameScript.SetBackScale(new Vector3(1.5f, 1, 1));
                 // ポーズ不可にする
                 pauseManager.EnablePauseButton(false);
             }
         }
     }
 }
Ejemplo n.º 2
0
    //------------------------------------------------------------------------------------------
    // Update
    //------------------------------------------------------------------------------------------
    private void Update()
    {
        switch (state)
        {
        case StageSelectState.Start:
            waitTime -= Time.deltaTime;
            if (waitTime <= 0)
            {
                state = StageSelectState.Playing;
            }
            break;

        case StageSelectState.Playing:
            // ポーズ可能にする
            pauseManager.EnablePauseButton(true);
            break;

        case StageSelectState.Decide:
            waitTime -= Time.deltaTime;
            if (waitTime <= 0)
            {
                state = StageSelectState.FadeOut;
            }
            break;

        case StageSelectState.FadeOut:
            waitTime -= Time.deltaTime;
            if (waitTime <= 0.0f)
            {
                FadeManager.fadeColor = Color.clear;
                FadeManager.FadeOut("PlayScene", 1.5f);
                wipeCamera.StartFadeOut(player.transform.position, 1.4f);
                waitTime = 99.0f;
            }
            break;

        default:
            Debug.Log("StageSelectScene:StateError");
            break;
        }
    }