Esempio n. 1
0
    private void EnableLevel()
    {
        cameraManager.onInitialMoveFinished -= EnableLevel;

        playerController.StartVerticalMovement();

        LoadLevel();

        playerShoot.BeginShooting();
    }
Esempio n. 2
0
    private IEnumerator MoveNPCForward()
    {
        float x = 0f;

        while (x < npcMoveForwardDist)
        {
            x += Time.deltaTime * npcCatchupSpeed;

            NPCs.position += Vector3.right * Time.deltaTime * npcCatchupSpeed;

            yield return(null);
        }

        if (!shieldsDown)
        {
            gun.BeginShooting();
        }
    }