public void SendHeadshake(float amount) { var msg = new MyEventHeadshake(); msg.Amount = amount; Peers.SendToAll(ref msg, NetDeliveryMethod.ReliableSequenced, 3); }
void OnHeadshake(ref MyEventHeadshake msg) { MyScriptWrapper.IncreaseHeadShake(msg.Amount); }