public static HealthPressureMessage Send(GameObject entityToUpdate, float pressureValue) { HealthPressureMessage msg = new HealthPressureMessage { pressure = pressureValue }; msg.SendTo(entityToUpdate); return(msg); }
void SendPressureUpdate() { HealthPressureMessage.Send(gameObject, pressureCache); }