Orb effects
This commit is contained in:
parent
9ecec372ce
commit
41c558ce69
357 changed files with 27818 additions and 34 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue