Exemplo n.º 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();
            }
        }
    }
Exemplo n.º 2
0
    /// <summary>
    /// 終了処理
    /// </summary>
    public void Finish()
    {
        UIEnabled.Enabled();

        foreach (var obj in HideGameObjects)
        {
            obj.SetActive(true);
        }

        ModeManager.ChangeGameMode();
    }
Exemplo n.º 3
0
    IEnumerator WaitClosed()
    {
        yield return(new WaitForSeconds(1.4f));

        CameraPosChange.ChangeGameMain();
        CampusBackGround.Enabled();
        CampusTemplate.NonSelect();
        ModeManager.ChangeGameMode();
        CampusDes.Des();
        BGM.Stop();
        UIModeChanger.Enable(true);
    }
Exemplo n.º 4
0
    // Update is called once per frame
    void Update()
    {
        count             += Time.deltaTime;
        rotationAngle     += Mathf.PI * rotationSpeed * Time.deltaTime;
        transform.position = new Vector3(
            centerObject.position.x + Mathf.Sin(rotationAngle) * moveRadius,
            transform.position.y,
            centerObject.position.x + Mathf.Cos(rotationAngle) * moveRadius);

        transform.LookAt(new Vector3(0, transform.position.y - 2, 0));

        if (alpha >= 1)
        {
            ModeManager.ChangeGameMode();
            UISelectManager.ChangeNoneMode();
            Application.LoadLevel("GameMain");
        }

        Reset();
    }