/// <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(); } } }
/// <summary> /// UIを隠す /// </summary> void HideUI() { UIEnabled.Unavailable(); foreach (var obj in HideGameObjects) { obj.SetActive(false); } }
// Use this for initialization void Start() { FeverMngr = GameObject.FindObjectOfType <FeverManager>(); UIEnabled.Unavailable(); InstantiatedNumber = 0; }
/// <summary> /// 終了時の処理 /// </summary> protected override void Finish() { base.Finish(); UIEnabled.Unavailable(); }