Example #1
0
 // Token: 0x06001030 RID: 4144 RVA: 0x00047215 File Offset: 0x00045415
 private void GenerateRuleVoteController(NetworkUser networkUser)
 {
     if (NetworkServer.active)
     {
         if (PreGameRuleVoteController.FindForUser(networkUser))
         {
             return;
         }
         PreGameRuleVoteController.CreateForNetworkUserServer(networkUser);
     }
 }
Example #2
0
 // Token: 0x0600131A RID: 4890 RVA: 0x0005D830 File Offset: 0x0005BA30
 private void GenerateRuleVoteController(NetworkUser networkUser)
 {
     if (NetworkServer.active)
     {
         if (PreGameRuleVoteController.FindForUser(networkUser))
         {
             return;
         }
         GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(Resources.Load <GameObject>("Prefabs/NetworkedObjects/PreGameRuleVoteController"), base.transform);
         gameObject.GetComponent <PreGameRuleVoteController>().networkUserNetworkIdentity = networkUser.GetComponent <NetworkIdentity>();
         NetworkServer.Spawn(gameObject);
     }
 }