void Awake() { instance = this; if (this.IsValidity) { this.Setting(); } }
private IEnumerator SetTopMost() { while (true) { yield return(new WaitForSeconds(this.LoopTopMost.Interval)); if (this.LoopTopMost.Validity) { WindowController.SetToTopMost(); } } }
private void Setting() { if (Application.isEditor || Screen.fullScreen || !(Application.platform == RuntimePlatform.WindowsPlayer)) { return; } int x = 0, y = 0; CommandLineHelper.GetIntValue(this.keys.posX, out x); CommandLineHelper.GetIntValue(this.keys.posY, out y); WindowController.TryMoveWindow(x, y, 1000, 60); var topmost = false; if (CommandLineHelper.GetBoolValue(this.keys.topmost, out topmost) && topmost) { WindowController.SetToTopMost(); this.coroutine = StartCoroutine(this.SetTopMost()); } }