public int AddGuest(CostumePartyGuest data, int slot)
 {
     if (this.IsPartyFull())
     {
         Debug.Log(new object[]
         {
             "party is full"
         });
         return -1;
     }
     if (data.PlayerID == 0uL)
     {
         Debug.LogError(new object[]
         {
             "CostumePartySystem Guests Error"
         });
         return -1;
     }
     switch (slot)
     {
     case 0:
         this.Guests[2] = data;
         return 2;
     case 1:
         this.Guests[3] = data;
         return 3;
     case 2:
         this.Guests[1] = data;
         return 1;
     case 3:
         this.Guests[4] = data;
         return 4;
     case 4:
         this.Guests[0] = data;
         return 0;
     case 5:
         this.Guests[5] = data;
         return 5;
     default:
         Debug.LogError(new object[]
         {
             string.Format("CostumeParty System AddGuest Error , slot : {0} ", slot)
         });
         return -1;
     }
 }
 private void ClearData()
 {
     this.mName.text = string.Empty;
     this.mGuest = null;
 }
 public void RefreshPlayer(CostumePartyGuest guest)
 {
     this.Clear(true);
     this.mGuest = guest;
     if (guest == null || guest.PlayerID == 0uL)
     {
         return;
     }
     this.isCreating = true;
     base.StartCoroutine(this.CreatePlayer(false));
 }
 public void RefreshData(CostumePartyGuest guest)
 {
     this.mGuest = guest;
     this.RefreshTxt();
 }
 public void PleaseLeave()
 {
     if (this.mGuest != null)
     {
         Globals.Instance.Player.CostumePartySystem.LeaveParty(this.mGuest.PlayerID);
     }
     this.mGuest = null;
     this.Clear(true);
     this.RefreshTxt();
     this.CloseLight();
 }