示例#1
0
 public static void AddBoostIntoGame(int boostId, Vector3 boostPos)
 {
     foreach (Client client in Server.clients.Values)
     {
         if (client.player != null)
         {
             ServerSend.HandleBoost(client.id, true, boostId, boostPos);//Tell client to add a boost
         }
     }
 }
示例#2
0
文件: Client.cs 项目: Larilok/Shooter
 public void RemoveBoostFromGame(int boostId, Vector3 boostPos)
 {
     foreach (Client client in Server.clients.Values)
     {
         if (client.player != null)
         {
             ServerSend.HandleBoost(client.id, false, boostId, boostPos);//Tell client to remove a boost
         }
     }
 }