public void OnEnterInSeat(bl_Passenger p, bl_Passenger.Seat s) { foreach (MonoBehaviour m in PlayerScripts) { m.enabled = false; } chararcterController.enabled = false; LocalObjects.SetActive(false); m_Seat = s; Passenger = p; isPassenger = true; }
void Awake() { if(GetComponent<bl_CarManager>() != null) { CarManager = GetComponent<bl_CarManager>(); } if (GetComponent<bl_Passenger>() != null) { Passenger = GetComponent<bl_Passenger>(); } if (GetComponent<bl_JetManager>() != null) { JetManager = GetComponent<bl_JetManager>(); } }
void Awake() { if (GetComponent <bl_CarManager>() != null) { CarManager = GetComponent <bl_CarManager>(); } if (GetComponent <bl_Passenger>() != null) { Passenger = GetComponent <bl_Passenger>(); } if (GetComponent <bl_JetManager>() != null) { JetManager = GetComponent <bl_JetManager>(); } }
/// <summary> /// /// </summary> void Awake() { view = PhotonView.Get(this); if (FindObjectOfType <bl_GameController>() != null) { GController = FindObjectOfType <bl_GameController>(); } if (GetComponent <CarController>() != null) { Car = GetComponent <CarController>(); } if (GetComponent <bl_Passenger>() != null) { Passenger = GetComponent <bl_Passenger>(); } if (!view.ObservedComponents.Contains(this)) { view.ObservedComponents.Add(this); } }
/// <summary> /// /// </summary> void Awake() { view = PhotonView.Get(this); if (FindObjectOfType<bl_GameController>() != null) { GController = FindObjectOfType<bl_GameController>(); } if (GetComponent<CarController>() != null) { Car = GetComponent<CarController>(); } if (GetComponent<bl_Passenger>() != null) { Passenger = GetComponent<bl_Passenger>(); } if (!view.ObservedComponents.Contains(this)) { view.ObservedComponents.Add(this); } }