Esempio n. 1
0
        public void SendRefillFromBottle()
        {
            Debug.Assert(Sync.IsServer);

            var msg = new RefillFromBottleMsg();
            msg.CharacterEntityId = Entity.EntityId;

            Sync.Layer.SendMessageToAll(ref msg);
        }
Esempio n. 2
0
 private static void OnRefillFromBottle(MySyncCharacter syncObject, ref RefillFromBottleMsg message, MyNetworkClient sender)
 {
     if (syncObject.Entity == MySession.LocalCharacter)
     {
         syncObject.Entity.OxygenComponent.ShowRefillFromBottleNotification();
     }
 }