예제 #1
0
    public static AdminEnableMessage Send(GameObject player, string adminToken)
    {
        AdminEnableMessage msg = new AdminEnableMessage {
            AdminToken = adminToken
        };

        msg.SendTo(player);

        return(msg);
    }
예제 #2
0
    public static AdminEnableMessage Send(NetworkConnection player, string adminToken)
    {
        UIManager.Instance.adminChatButtons.ServerUpdateAdminNotifications(player);
        AdminEnableMessage msg = new AdminEnableMessage {
            AdminToken = adminToken
        };

        msg.SendTo(player);

        return(msg);
    }
예제 #3
0
    public static AdminEnableMessage Send(ConnectedPlayer player, string adminToken)
    {
        UIManager.Instance.adminChatButtons.ServerUpdateAdminNotifications(player.Connection);
        var adminGhostItemStorage = AdminManager.Instance.CreateItemSlotStorage(player);
        AdminEnableMessage msg    = new AdminEnableMessage
        {
            AdminToken        = adminToken,
            AdminGhostStorage = adminGhostItemStorage.GetComponent <NetworkIdentity>().netId
        };

        msg.SendTo(player.Connection);

        return(msg);
    }