void OnPlayerSpawned(HR_PlayerHandler player) { playerCar = player.transform; playerRigid = player.GetComponent <Rigidbody>(); hoodCam = player.GetComponentInChildren <RCC_HoodCamera>(); tpsCam = player.GetComponentInChildren <RCC_TPSCamera>(); if (GameObject.Find("Mirrors")) { mirrors = GameObject.Find("Mirrors").gameObject; } }
void HR_PlayerHandler_OnPlayerSpawned(HR_PlayerHandler player) { gameStarted = false; player.GetComponent <RCC_CarControllerV3> ().canControl = false; StartCoroutine(WaitForGameStart()); }