Ejemplo n.º 1
0
    private void Update()
    {
        if (Input.GetKey(KeyCode.Z))
        {
            return;
        }

        if (gamePause_Master)
        {
            return;
        }

        if (PlayerManager.instance.target.feverDirect.IsProgressing())
        {
            PlayerManager.instance.FeverDirectProgress();
        }
        else if (PlayerManager.instance.IsFever())
        {
            PlayerManager.instance.target.MoveCenter();

            effectManager.Progress();

            PlayerManager.instance.target.feverBase.Progress();
        }
        else if (PlayerManager.instance.target.feverBase.feverEndDirect.IsProgressing())
        {
            PlayerManager.instance.target.feverBase.feverEndDirect.Progress();
        }

        uIManager.Progress();

        if (gamePause)
        {
            return;
        }

        if (pauseTime != 0f)
        {
            pauseTime -= Time.deltaTime;
            if (pauseTime <= 0)
            {
                pauseTime = 0f;
                //gamePause = false;
            }
            else
            {
                return;
            }
        }


        if (Input.GetKeyDown(KeyCode.S))
        {
            DialogScript.instance.Active(0, 3);
        }
        if (Input.GetKeyDown(KeyCode.D))
        {
            bulletManager.DisableAllObjects();
        }

        Progress();

        if (GameRunningTest.instance.IsStaticEvent() || GameRunningTest.instance.dialogActive)
        {
            return;
        }

        if (!GameRunningTest.instance.directStop)
        {
            PlayerManager.instance.PlayerProgress();
            bulletManager.Progress();
        }

        effectManager.Progress();
        //EnemyManager.instance.Progress();
        bulletManager.CollisionCheck();
    }