-
Notifications
You must be signed in to change notification settings - Fork 1
Managers
Feynmen edited this page Jun 18, 2018
·
9 revisions
The main logic of Managers is creating some instances which will contain the logic of features which will be needed in all application lifetime. For example Server Communication Logic.
Managers can be used only in classes which inherited from ControllerBase or SceneControllerBase using Injection
public class TestManager : IManager
{
public void Init()
{
}
public void Release()
{
}
public void ShowTestMessage()
{
Debug.Log("Test message");
}
}public interface IManager: IInitializable, IReleaseble
{
}
public interface IInitializable
{
void Init();
}
public interface IReleaseble
{
void Release();
}