示例#1
0
 protected void uLink_OnNetworkInstantiate(uLink.NetworkMessageInfo info)
 {
     this.instantiatedPlayerClient = base.playerClient;
     if (this.instantiatedPlayerClient)
     {
         base.name = string.Format("{0}{1}", this.instantiatedPlayerClient.name, info.networkView.localPrefab);
     }
     try
     {
         this.deathTransfer = base.AddAddon <DeathTransfer>();
     }
     catch (Exception exception)
     {
         Debug.LogException(exception, this);
     }
     if (!base.networkView.isMine)
     {
         if (base.CreateInterpolator())
         {
             base.interpolator.running = true;
         }
         UnityEngine.Object.Destroy(base.GetComponent <LocalDamageDisplay>());
     }
     else
     {
         CameraMount.ClearTemporaryCameraMount();
         UnityEngine.Object.Destroy(base.GetComponent <ApplyCrouch>());
         base.CreateCCMotor();
         base.CreateOverlay();
     }
 }
示例#2
0
 protected void uLink_OnNetworkInstantiate(uLink.NetworkMessageInfo info)
 {
     this.instantiatedPlayerClient = base.playerClient;
     if (this.instantiatedPlayerClient)
     {
         base.name = string.Format("{0}{1}", this.instantiatedPlayerClient.name, info.networkView.localPrefab);
     }
     try
     {
         this.deathTransfer = base.AddAddon<DeathTransfer>();
     }
     catch (Exception exception)
     {
         Debug.LogException(exception, this);
     }
     if (!base.networkView.isMine)
     {
         if (base.CreateInterpolator())
         {
             base.interpolator.running = true;
         }
         UnityEngine.Object.Destroy(base.GetComponent<LocalDamageDisplay>());
     }
     else
     {
         CameraMount.ClearTemporaryCameraMount();
         UnityEngine.Object.Destroy(base.GetComponent<ApplyCrouch>());
         base.CreateCCMotor();
         base.CreateOverlay();
     }
 }