Beispiel #1
0
 /// <summary>
 /// Called by the local user from the PlayerCharacter component which handles input polling
 /// to display the game menu.
 /// </summary>
 public void ShowGameMenu()
 {
     #if !UNITY_EDITOR
     Screen.showCursor = true;
     #endif
     focusMode = GameDirectorFocusMode.Menu;
     InputFocus = (IInputPoller)this;
 }
Beispiel #2
0
 /// <summary>
 /// Called by the local user from the PlayerCharacter component which handles input polling
 /// to display the chat bar to begin typing in a message to all players.
 /// </summary>
 public void ShowChatBar()
 {
     focusMode = GameDirectorFocusMode.ChatBox;
     typingChatMessage = "";
     needFocusControl = true;
     InputFocus = (IInputPoller)this;
 }