public static HealthPressureMessage Send(GameObject entityToUpdate, float pressureValue)
    {
        HealthPressureMessage msg = new HealthPressureMessage
        {
            pressure = pressureValue
        };

        msg.SendTo(entityToUpdate);
        return(msg);
    }
예제 #2
0
 void SendPressureUpdate()
 {
     HealthPressureMessage.Send(gameObject, pressureCache);
 }