コード例 #1
0
 void OnHeadshake(ref MyEventHeadshake msg)
 {
     MyScriptWrapper.IncreaseHeadShake(msg.Amount);
 }
コード例 #2
0
        public void SendHeadshake(float amount)
        {
            var msg = new MyEventHeadshake();
            msg.Amount = amount;

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