Beispiel #1
0
    public void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            effectManager.ObjectActive(Vector3.zero, 21, 0.02f);
            //bulletManager.InitAngle(270);
            // bulletManager.InitAccel(20f);
            // bulletManager.InitAngleAccel(0f);
        }


        if (PlayerManager.instance.target.feverDirect.IsProgressing())
        {
            PlayerManager.instance.FeverDirectProgress();

            return;
        }
        else if (PlayerManager.instance.IsFever())
        {
            PlayerManager.instance.target.MoveCenter();

            PlayerManager.instance.target.feverBase.Progress();

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

            return;
        }

        if (stop)
        {
            return;
        }

        feverButton.interactable = playerManager.target.GetFeverCheck();

        playerManager.PlayerProgress();
        bossScript.Progress();

        bulletManager.Progress();
        bulletManager.CollisionCheck();

        effectManager.Progress();
    }
    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();
    }