void Update() { //Debug.Log ( "playerHealthController.GetCurrentHP () = " + playerHealthController.GetCurrentHP () ); if (playerInputController.GetPosition().y < -10.0f) { SpawnPlayer(); } if (specialBox.transform.position.y < -10.0f) { SpawnBox(); } if (playerInputDisableTimer != null) { playerInputDisableTimer.updateTimer(Time.deltaTime); } if (playerInputDisableTimer != null && playerInputDisableTimer.stopped()) { playerInputController.EnableInput(); playerInputDisableTimer = null; } }