public override void Close() { if (_actualNameIndexToAdd < _namesToAdd.Length) // No caso de clicar em cancelar do teclado e ainda estiver nome para registrar { AddName(string.Empty); return; } PlayTableKeyboard.Instance.Close(); PlayTableKeyboard.Instance.onConfirm.RemoveAllListeners(); PlayTableKeyboard.Instance.onCancel.RemoveAllListeners(); PlayTableKeyboard.Instance.OnTextChange -= OnKeyboardTextChange; PlayerInformations.Close(); NamesWindow.CloseHorizontal(); ClassWindow.CloseHorizontal(); Invoke("BaseClose", 1.3f); }
private void NextName() { PlayerInformations.Close(); _actualPosition = _namesToAdd[_actualNameIndexToAdd].Position; KeyboardPositions previousPosition = _namesToAdd[_actualNameIndexToAdd - 1].Position; RepositionKeyboard(); if (KeyboardChangedOrientation(previousPosition)) { NamesWindow.CloseVertical(); ClassWindow.CloseVertical(); PlayTableKeyboard.Instance.Close(); } else { PlayTableKeyboard.Instance.Open(_keyboardPosition); } ClassWindow.ClearLabel(); Invoke("SetPositionsAndEnter", 1.5f); }