Inheritance: UnityEngine.MonoBehaviour
Exemple #1
0
 public void Start()
 {
     socket = gameObject.AddComponent <EmulatorClientSocket>();
     socket.Init(this);
     emulatorUpdate = EndOfFrame();
     StartCoroutine(emulatorUpdate);
 }
Exemple #2
0
 public void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     if (instance != this)
     {
         Debug.LogWarning("PhoneRemote must be a singleton.");
         enabled = false;
         return;
     }
     socket = gameObject.AddComponent <EmulatorClientSocket>();
     socket.Init(this);
     StartCoroutine("EndOfFrame");
 }
 public void Awake()
 {
     if (instance == null) {
     instance = this;
       }
       if (instance != this) {
     Debug.LogWarning("PhoneRemote must be a singleton.");
     enabled = false;
     return;
       }
       socket = gameObject.AddComponent<EmulatorClientSocket>();
       socket.Init(this);
       StartCoroutine("EndOfFrame");
 }
 public void Start()
 {
     socket = gameObject.AddComponent<EmulatorClientSocket>();
       socket.Init(this);
       StartCoroutine("EndOfFrame");
 }