public SetTemperature ( LevelSettings levelAmbientTemperature ) : void | ||
levelAmbientTemperature | LevelSettings | |
return | void |
public void Set() { Debug.Log("setting level settings"); playerXform = GameObject.FindGameObjectWithTag("Player").transform; playerCameraXform = GameObject.FindGameObjectWithTag("MainCamera").transform; playerFX = playerXform.GetComponent<PlayerEffects>(); playerFX.SetFootsteps(footstepEffectCollection); playerFX.SetTemperature(levelAmbientTemperature); playerXform.position = spawnLocations[(int)activeSpawn].position; playerXform.rotation = spawnLocations[(int)activeSpawn].rotation; playerXform.localScale = spawnLocations[(int)activeSpawn].localScale; }