private void Start() { PlayerController.Instance.UpdateMovementHook += UpdateMovement; // Attach our function to the hook #if UNITY_ANDROID || UNITY_IPHONE mControlType = Global.mControlType; mOriginalPos = Vector3.zero; #endif }
private void CheckADBAuthorisation(AndroidControl instance) { if (this.myAndroid.HasConnectedDevices) { while ((this.myAndroid.GetConnectedDevice().GetState != DeviceIO.DeviceState.ONLINE) | (this.myAndroid.GetConnectedDevice().GetState == DeviceIO.DeviceState.RECOVERY)) { this.Invoke(new Action(this._Lambda$__85)); } } }
public DeviceFilterEditor(DeviceIO devInst, AndroidControl andInst, string devStorageLoc, int pitBufferSize, bool samsungMode) { base.Load += new EventHandler(this.DeviceFilterEditor_Load); this.AppPath = Application.StartupPath.ToString(); this.InitializeComponent(); this._deviceInstance = devInst; this._androidInstance = andInst; this._devStorageLoc = devStorageLoc; this._pitBufferSize = pitBufferSize; this._samsungMode = samsungMode; }
void Singleton() { if (_instance == null) { _instance = this; } else { Debug.LogWarning("Hay varias instancias de AndroidControl."); #if UNITY_EDITOR gameObject.SetActive(false); #else Destroy(gameObject); #endif } }
public DeviceFilterEditor(string fileName, DeviceIO devInst, AndroidControl andInst, string devStorageLoc, int pitBufferSize, bool samsungMode) { base.Load += new EventHandler(this.DeviceFilterEditor_Load); this.AppPath = Application.StartupPath.ToString(); this.InitializeComponent(); this._deviceInstance = devInst; this._androidInstance = andInst; this._devStorageLoc = devStorageLoc; this._pitBufferSize = pitBufferSize; this._samsungMode = samsungMode; if (!string.IsNullOrEmpty(fileName)) { this.txtFileName.Text = Path.GetFileName(fileName); this.LoadFile(fileName); } else { this.Close(); } }
private void WaitDeviceDialog_Load(object sender, EventArgs e) { this.myAndroid = AndroidControl.Init; this.myAndroid.RefreshDevices(); this._waitThread.Start(); }