Пример #1
0
 void SendBrainUpdate()
 {
     if (livingHealthBehaviour.brainSystem != null)
     {
         HealthBrainMessage.SendToAll(gameObject, livingHealthBehaviour.brainSystem.IsHuskServer,
                                      livingHealthBehaviour.brainSystem.BrainDamageAmt);
     }
 }
Пример #2
0
 void SendBrainUpdate(GameObject requestor)
 {
     if (livingHealthBehaviour.brainSystem != null)
     {
         HealthBrainMessage.Send(requestor, gameObject, livingHealthBehaviour.brainSystem.IsHuskServer,
                                 livingHealthBehaviour.brainSystem.BrainDamageAmt);
     }
 }
Пример #3
0
    public static HealthBrainMessage SendToAll(GameObject entityToUpdate, bool isHusk, int brainDamage)
    {
        HealthBrainMessage msg = new HealthBrainMessage
        {
            EntityToUpdate = entityToUpdate.GetComponent <NetworkIdentity>().netId,
            IsHusk         = isHusk,
            BrainDamage    = brainDamage
        };

        msg.SendToAll();
        return(msg);
    }