private void OnCoolingExit(Collider other) { ServerModificationManager serverModificationManager = other.GetComponent <ServerModificationManager>(); if (serverModificationManager != null) { DeactivateParticle(fanParticle); serverModificationManager.RemoveModification(modification); } }
private void InitializeVariables() { TotalVisualizations = 0; VisualizationsPerSecond = initialVisualizationsPerSecond; Temperature = attributes.MinTemperature; TemperatureChangePerSecond = 0f; IsBlocked = false; totalVisualizationsFraction = 0f; modificationManager = GetComponent <ServerModificationManager>(); }
private void OnCoolingEnter(Collider other) { ServerModificationManager serverModificationManager = other.GetComponent <ServerModificationManager>(); if (serverModificationManager != null) { ActivateParticle(fanParticle); serverModificationManager.AddModification(modification); } }