Exemple #1
0
 public void Initialize(AlchemicalComponentType alchemicalComponentType,
                        AlchemicalComponentTemperatureState temperature = AlchemicalComponentTemperatureState.Cold)
 {
     if (isInitialize)
     {
         return;
     }
     spriteRenderer.color      = AlchemicalComponentColorDictionary.dictionary[alchemicalComponentType];
     alchemicalComponentParams = new AlchemicalComponentParams(alchemicalComponentType, temperature);
     isInitialize = true;
 }
 public AlchemicalComponentParams(AlchemicalComponentType alchemicalComponentType,
                                  AlchemicalComponentTemperatureState temperature = AlchemicalComponentTemperatureState.Cold)
 {
     this.alchemicalComponentType = alchemicalComponentType;
     this.temperature             = new AlchemicalComponentTemperature(temperature);
 }
Exemple #3
0
 public AlchemicalComponentTemperature(AlchemicalComponentTemperatureState temperature)
 {
     _heat = AlchemicalComponentTemperatureDictionary.dictionary[temperature];
     state = temperature;
 }