Example #1
0
 protected static void InvokeCmdCmdSelfDeduct(NetworkBehaviour obj, NetworkReader reader)
 {
     if (!NetworkServer.active)
     {
         Debug.LogError("Command CmdSelfDeduct called on client.");
         return;
     }
     ((PlayerStats)obj).CmdSelfDeduct(GeneratedNetworkCode._ReadHitInfo_PlayerStats(reader));
 }
Example #2
0
 protected static void InvokeCmdCmdSuicide(NetworkBehaviour obj, NetworkReader reader)
 {
     if (!NetworkServer.active)
     {
         Debug.LogError("Command CmdSuicide called on client.");
         return;
     }
     ((CharacterClassManager)obj).CmdSuicide(GeneratedNetworkCode._ReadHitInfo_PlayerStats(reader));
 }