-
Notifications
You must be signed in to change notification settings - Fork 1
Controller
Feynmen edited this page Jun 18, 2018
·
3 revisions
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
- You can access to SceneController using protected variable or function
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();
}