// OnSkillIsOnCooldown public void OnSkillIsOnCooldown() { if (inputManager.GetButtonDown(buttons.Skills[slotId]) && lobbyChat != null) { lobbyChat.AddEntry(player.selectedSkill.skillName + " is still on cooldown."); } }
// Creates a popup menu public void CreatePlayerPopupMenu(string playerName) { new PopupMenu( playerPopupMenuContents, new PopupMenu.CallBack[] { () => { Lobby.RPC("ViewProfile", Lobby.lobby, playerName); }, () => { Lobby.RPC("InviteToParty", Lobby.lobby, playerName); }, () => { Lobby.RPC("ClientChat", Lobby.lobby, "Map", "//ginvite " + playerName); }, () => { new FriendAddWindow( "Add a friend:", playerName ); }, () => { lobbyChat.AddEntry("Coming soon!"); }, () => { lobbyChat.AddEntry("Coming soon!"); }, () => { lobbyChat.AddEntry("Coming soon!"); } } ); }
protected void StartGame() { // Reset stats stats.total = new PlayerQueueStats(); // Start game GameManager.gameStarted = true; // Chat message if (this == Player.main && lobbyChat != null && GameManager.isArena) { lobbyChat.AddEntry("Game started."); } }