コード例 #1
0
 //check if it is in the client mode
 public static bool IsClient()
 {
     if (!MPManager.IsMultiPlayer() || MPManager.IsServer())
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
 //check if it is in the server mode && they are players && not allow autoswitch
 public static bool NoAutoSwitch()
 {
     if (!MPManager.IsMultiPlayer() || MPManager.IsServer())
     {
         return(false);
     }
     //if (MPManager.IsClient()) return true;
     return(!MPManager.AllowedManualSwitch); //aloow manual switch or not
 }