void Update () { if(Application.loadedLevelName == sceneName){ this.light.range = 30; } else{ this.light.range = 0; } } }
public virtual void Update(double time) { //Update the controllers foreach (var r in ControlInterpreters) { r.Update(time, this); } foreach (var r in Interactables) { r.Update(time, this); } LightManager.Update(); Physics.Update(time); }