public void Start() { socket = gameObject.AddComponent <EmulatorClientSocket>(); socket.Init(this); emulatorUpdate = EndOfFrame(); StartCoroutine(emulatorUpdate); }
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"); }