Esempio n. 1
0
 public FishBucketPlayerData(long playerId, int playerNum, bool isLocalPlayer, string displayName)
 {
     PlayerId        = playerId;
     PlayerNum       = playerNum;
     IsLocalPlayer   = isLocalPlayer;
     DisplayName     = displayName;
     Score           = 0;
     Placement       = -1;
     BucketReference = null;
 }
Esempio n. 2
0
 private void onPropSpawned(Prop prop)
 {
     if (dataEntityCollection.TryGetComponent <SessionIdData>(prop.PropUserRef.PlayerHandle, out var component))
     {
         FishBucketPlayerData fishBucketPlayerData = playerData[component.SessionId];
         FishBucketBucket     component2           = prop.GetComponent <FishBucketBucket>();
         component2.SetBucketColor(fishBucketPlayerData.PlayerNum);
         playerData[component.SessionId].BucketReference = component2;
         Service.Get <EventDispatcher>().DispatchEvent(new UIDisablerEvents.DisableUIElement("Joystick", hideElement: true));
     }
     prop.PropUserRef.EPropSpawned -= onPropSpawned;
 }