Exemple #1
0
    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;
        }
    }
Exemple #2
0
 void HR_PlayerHandler_OnPlayerSpawned(HR_PlayerHandler player)
 {
     gameStarted = false;
     player.GetComponent <RCC_CarControllerV3> ().canControl = false;
     StartCoroutine(WaitForGameStart());
 }