Наследование: MonoBehaviour
    public void Init(EmulatorManager remote) {
      phoneRemote = remote;

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