예제 #1
0
 // OnSkillIsOnCooldown
 public void OnSkillIsOnCooldown()
 {
     if (inputManager.GetButtonDown(buttons.Skills[slotId]) && lobbyChat != null)
     {
         lobbyChat.AddEntry(player.selectedSkill.skillName + " is still on cooldown.");
     }
 }
예제 #2
0
 // 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!"); }
     }
         );
 }
예제 #3
0
    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.");
        }
    }