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

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