//blocker windows activator private void WindowBlocker_Open() { if (windowBlocker) { windowBlocker.Open(); } }
//blocker console Windows activator private void ConsoleWindowBlocker_Open() { if (consoleWindowBlocker) { consoleWindowBlocker.Open(); } }
public void ActivateGameInterface() { if (!isGameInterfaceActivated) { gameWindowHud.Open(); ActivateGameWEvent(); isGameInterfaceActivated = true; ChangeGameWEvent(isGameInterfaceActivated); } }
//activators protected void WindowActivator_Open(int number) { if ((number >= 0) && (number < windowActivator.Length)) { WindowOpenClose activeA = windowActivator[number]; if (activeA) { if (!activeA.IsOpen()) { activeA.Open(); } } } }
//activators private void WindowActivator_Open(int number) { if (number < windowActivator.Length) { WindowOpenClose activeA = windowActivator[number]; if (activeA) { if (!activeA.IsOpen()) { activeA.Open(); } } } }
public void ShowAdviceGameWindow(string value) { gameWindowAdviceText.text = TextHelp.SpecTextChar(value); gameWindowAdvice.Open(); if (IsInvoking(nameof(CloseAdviceGameWindow))) { CancelInvoke(); } int delayTime = value.Length / _countCharForDelayOneSecond; delayTime = delayTime > 0 ? delayTime : 1; Invoke(nameof(CloseAdviceGameWindow), delayTime); ActivateAdviceGameWEvent(); }