public static void OnCopySettingsHandler(StorageCold comp, object data) { if (data != null) { comp.OnCopySettings(((GameObject)data).GetComponent <StorageCold>()); } }
public static void OnOperationalChangedHandler(StorageCold comp, object data) { comp.OnOperationalChanged(); }
private void OnCopySettings(StorageCold other) { temperatureCurrent = other.temperatureCurrent; }