static void CreateIfNeeded()
 {
     if (instance == null)
     {
         GameObject obj = new GameObject();
         obj.name = "AbsolutelyActiveCoroutine";
         instance = obj.AddComponent <AbsolutelyActiveCoroutine>();
         DontDestroyOnLoad(obj);
     }
 }
Exemplo n.º 2
0
        void Awake()
        {
            Run();

            AbsolutelyActiveCoroutine.Subscribe(_firstSystemContext.DoInitRun());
        }
Exemplo n.º 3
0
 public void Execute(SystemContext self, SystemContext next, SystemContextContainer container)
 {
     AbsolutelyActiveCoroutine.Subscribe(DoExecute(self, next, container));
 }