Синтаксис:
Используется csharp
using UnityEngine;
using Photon.Pun;
using BoneCrackerGames.RealisticCarControllerV3;
public class MyNetworkComponents : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
if (GetComponent<PhotonView>().IsMine)
{
GetComponent<RCCRealisticCarControllerV3>().enabled = true;
}
}
}
using Photon.Pun;
using BoneCrackerGames.RealisticCarControllerV3;
public class MyNetworkComponents : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
if (GetComponent<PhotonView>().IsMine)
{
GetComponent<RCCRealisticCarControllerV3>().enabled = true;
}
}
}
Но я не могу его подключить, мне нужно добыть скрипт через машину: "RCCRealisticCarControllerV3" через using но я не могу понять как