예제 #1
0
        private void OnCoolingExit(Collider other)
        {
            ServerModificationManager serverModificationManager = other.GetComponent <ServerModificationManager>();

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

            if (serverModificationManager != null)
            {
                ActivateParticle(fanParticle);
                serverModificationManager.AddModification(modification);
            }
        }