void SendBrainUpdate() { if (livingHealthBehaviour.brainSystem != null) { HealthBrainMessage.SendToAll(gameObject, livingHealthBehaviour.brainSystem.IsHuskServer, livingHealthBehaviour.brainSystem.BrainDamageAmt); } }
void SendBrainUpdate(GameObject requestor) { if (livingHealthBehaviour.brainSystem != null) { HealthBrainMessage.Send(requestor, gameObject, livingHealthBehaviour.brainSystem.IsHuskServer, livingHealthBehaviour.brainSystem.BrainDamageAmt); } }
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); }