private void EnableLevel() { cameraManager.onInitialMoveFinished -= EnableLevel; playerController.StartVerticalMovement(); LoadLevel(); playerShoot.BeginShooting(); }
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(); } }