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(); } } }
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); } } }