コード例 #1
0
    /// <summary>
    /// もし上限を超えていたり、下限を下回っていたら直す
    /// </summary>
    void LimitCheck()
    {
        if (FeverScore > MaxFeverScore && ModeManager.IsGameMode)
        {
            NumTimes++;
            MaxFeverScore *= 2;
            FeverScore     = MaxFeverScore;

            Data.Write(new FeverData(NumTimes, 0, MaxFeverScore));
            TreeChange.NextChange();

            IncreaseScore = 0;
            Sound.Stop();
            ModeManager.ChangeFerverMode();
            UIEnabled.Unavailable();
            Ferver();
        }

        if (ModeManager.IsFerverMode)
        {
            Count += Time.deltaTime;
            if (FeverScore <= MinFeverScore || Count >= FeverTime)
            {
                iTween.Stop(gameObject);

                Count      = 0;
                FeverScore = MinFeverScore;
                ModeManager.ChangeGameMode();
                Sound.Stop();
                UIEnabled.Enabled();
            }
        }
    }
コード例 #2
0
 /// <summary>
 /// UIを隠す
 /// </summary>
 void HideUI()
 {
     UIEnabled.Unavailable();
     foreach (var obj in HideGameObjects)
     {
         obj.SetActive(false);
     }
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     FeverMngr = GameObject.FindObjectOfType <FeverManager>();
     UIEnabled.Unavailable();
     InstantiatedNumber = 0;
 }
コード例 #4
0
 /// <summary>
 /// 終了時の処理
 /// </summary>
 protected override void Finish()
 {
     base.Finish();
     UIEnabled.Unavailable();
 }