Orb effects

This commit is contained in:
Gerard Gascón 2023-02-28 20:24:06 +01:00
parent 9ecec372ce
commit 41c558ce69
357 changed files with 27818 additions and 34 deletions

View file

@ -21,7 +21,7 @@ public class Thunder : MonoBehaviour{
// Start is called before the first frame update
void Start(){
orgLightColor = globalLight.color;
orgIntensity = globalLight.intensity;
_defaultIntensity = orgIntensity = globalLight.intensity;
orgCamBGColor = camera.backgroundColor;
timer = intervalTime;
@ -69,4 +69,12 @@ public class Thunder : MonoBehaviour{
camera.backgroundColor = orgCamBGColor;
globalLight.intensity = orgIntensity;
}
float _defaultIntensity;
public void DarkRoom(float intensity) {
orgIntensity = intensity;
}
public void LightRoom() {
orgIntensity = _defaultIntensity;
}
}