示例#1
0
 public bool CheckForColor(string wantedColor)
 {
     if (PlayersList.IsColorAvailable(wantedColor))
     {
         //Debug.Log(wantedColor + "is available !");
         PV.RPC("GiveColor", RpcTarget.AllBuffered, new string[] { wantedColor, myCurrentColor, transform.name });
         myCurrentColor = wantedColor;
         return(true);
     }
     //Debug.Log(wantedColor + "is not available.");
     return(false);
 }