-
Notifications
You must be signed in to change notification settings - Fork 1
SubController
Feynmen edited this page Jun 18, 2018
·
4 revisions
This class you can use if you want to separate the logic of your controller. You must manually initialize SubControllers like Views
For cleaning data, you can override function Release, which will be invoked when a component Destroying
public override void Release()
{
//Remove some data
}SubController
public class TestSubController : SubControllerBase
{
public override void Init() { }
}Controller
public class TestController : ControllerBase
{
[SerializeField] private TestSubController _testSubController;
protected override void Init()
{
_testSubController.Init();
}
}