Skip to content

Controller

Feynmen edited this page Jun 18, 2018 · 3 revisions

ControllerBase Description

In your scene, you can create Controller for doing some actions, for example, VideoPlayerController or MainMenuController. In a controller, you need to describe a logic and connect it to View. If you have large logic, you can separate it using SubControllerBase

ControllerBase Features

 protected SceneControllerBase SceneController { private set; get; }
 protected T GetSceneControler<T>() where T : SceneControllerBase
  • You can cath moment when Controller is Enable or Disable
public override void Enable()
{
	base.Enable();
}		
public override void Disable()
{
	base.Disable();
}

Clone this wiki locally