Inheritance: MonoBehaviour
    public void Init(EmulatorManager remote) {
      phoneRemote = remote;

      if (EmulatorConfig.Instance.PHONE_EVENT_MODE != EmulatorConfig.Mode.OFF) {
        phoneEventThread = new Thread(phoneEventSocketLoop);
        phoneEventThread.Start();
      }
    }
Example #2
0
    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;
   }
 }
Example #4
0
        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();
            }
        }
Example #5
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");
 }
Example #7
0
 public void Awake()
 {
     if (instance == null) {
     instance = this;
       }
       if (instance != this) {
     Debug.LogWarning("PhoneRemote must be a singleton.");
     enabled = false;
     return;
       }
 }