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

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