public void Init(EmulatorManager remote) { phoneRemote = remote; if (EmulatorConfig.Instance.PHONE_EVENT_MODE != EmulatorConfig.Mode.OFF) { phoneEventThread = new Thread(phoneEventSocketLoop); phoneEventThread.Start(); } }
public void Init(EmulatorManager remote) { Debug.Log ("Setting up socket."); phoneRemote = remote; if (EmulatorConfig.Instance.PHONE_EVENT_MODE != EmulatorConfig.Mode.OFF) { phoneEventThread = new Thread(phoneEventSocketLoop); phoneEventThread.Start(); } }
public void Awake() { if (instance == null) { instance = this; } if (instance != this) { Debug.LogWarning("PhoneRemote must be a singleton."); enabled = false; return; } }
public void Init(EmulatorManager remote) { phoneRemote = remote; if (EmulatorConfig.Instance.PHONE_EVENT_MODE != EmulatorConfig.Mode.OFF) { phoneEventThread = new Thread(phoneEventSocketLoop); phoneEventThread.IsBackground = true; phoneEventThread.Start(); } }
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"); }