示例#1
0
 public override void OnEvent(syncPlayerRenderers evnt)
 {
     if (!this.ValidateSender(evnt, SenderTypes.Any))
     {
         return;
     }
     if (LocalPlayer.Transform)
     {
         CoopMecanimReplicator componentInChildren = LocalPlayer.Transform.GetComponentInChildren <CoopMecanimReplicator>();
         if (componentInChildren)
         {
             componentInChildren.forceStateUpdate();
         }
     }
 }
示例#2
0
 public override void OnEvent(updateMecanimRemoteState evnt)
 {
     if (!this.ValidateSender(evnt, SenderTypes.Any))
     {
         return;
     }
     if (evnt.Target)
     {
         CoopMecanimReplicator component = evnt.Target.GetComponent <CoopMecanimReplicator>();
         if (!component)
         {
             component = evnt.Target.transform.GetChild(0).GetComponent <CoopMecanimReplicator>();
         }
         if (component)
         {
             component.ApplyHashToRemote(evnt.layer, evnt.hash, evnt.anyState, evnt.normalizedTime, false);
         }
     }
 }