Example #1
0
 public override void OnEvent(playerSyncJump evnt)
 {
     if (!this.ValidateSender(evnt, SenderTypes.Any))
     {
         return;
     }
     if (evnt.target)
     {
         CoopPlayerClientHitPrediction component = evnt.target.GetComponent <CoopPlayerClientHitPrediction>();
         if (component)
         {
             component.setJumpEvent();
         }
     }
 }
Example #2
0
 public override void OnEvent(playerSyncAttack evnt)
 {
     if (!this.ValidateSender(evnt, SenderTypes.Any))
     {
         return;
     }
     if (evnt.target)
     {
         CoopPlayerClientHitPrediction component = evnt.target.GetComponent <CoopPlayerClientHitPrediction>();
         if (component)
         {
             component.setAttackEvent(evnt.stickAttack, evnt.axeAttack, evnt.rockAttack);
         }
     }
 }