void OnHeadshake(ref MyEventHeadshake msg)
 {
     MyScriptWrapper.IncreaseHeadShake(msg.Amount);
 }
        public void SendHeadshake(float amount)
        {
            var msg = new MyEventHeadshake();
            msg.Amount = amount;

            Peers.SendToAll(ref msg, NetDeliveryMethod.ReliableSequenced, 3);
        }