LightManager.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
	void Update () {
		if(Application.loadedLevelName == sceneName){
			this.light.range = 30;
		}
		else{
			this.light.range = 0;
		}
	}
}

Usage Example

Beispiel #1
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);
        }
All Usage Examples Of LightManager::Update
LightManager