private float NextCameraRotation() { var platform = spawnerPlatform.FindActivePlatform(); if (platform.CompareTag("qte")) { if (gamePhaseController.GetCurrentPhase() == GamePhaseController.Phase.QTE_START) { return(35); } else if (gamePhaseController.GetCurrentPhase() == GamePhaseController.Phase.QTE_ACTIVE) { return(35); } } var nextPlatform = spawnerPlatform.FindNextPlatform(); if (nextPlatform.CompareTag("qte")) { return(20); } else { return(10F); } }
private void Update() { if (gamePhaseController.GetCurrentPhase() == GamePhaseController.Phase.QTE_ACTIVE) { HidePlayerAfterAShortWhile(); } else { BlinkPlayerWhenInvulnerable(); } }