示例#1
0
 protected void SetLooter(uLink.NetworkPlayer ply)
 {
     this.occupierText = null;
     if (ply == uLink.NetworkPlayer.unassigned)
     {
         this.ClearLooter();
     }
     else
     {
         if (ply == NetCull.player)
         {
             if (!this.thisClientIsInWindow)
             {
                 try
                 {
                     this._currentlyUsingPlayer = ply;
                     RPOS.OpenLootWindow(this);
                     this.thisClientIsInWindow = true;
                 }
                 catch (Exception exception)
                 {
                     Debug.LogError(exception, this);
                     NetCull.RPC((UnityEngine.MonoBehaviour) this, "StopLooting", uLink.RPCMode.Server);
                     this.thisClientIsInWindow = false;
                     ply = uLink.NetworkPlayer.unassigned;
                 }
             }
         }
         else if ((this._currentlyUsingPlayer == NetCull.player) && (NetCull.player != uLink.NetworkPlayer.unassigned))
         {
             this.ClearLooter();
         }
         this._currentlyUsingPlayer = ply;
     }
 }