Exemplo n.º 1
0
        public void BindScene()
        {
            for (int i = 0; i < nodes.Count; i++)
            {
                nodes[i].Populate();
            }

            foreach (var factory in factories)
            {
                Toolbox.Add(factory);
            }

            Setup();

            initialized = true;

            var objs = FindObjectsOfType <MonoBehaviour>();

            for (var i = 0; i < objs.Length; i++)
            {
                var obj  = objs[i];
                var ireq = obj as IRequireStarter;
                if (ireq != null)
                {
                    ireq.SetupAfterStarter();
                }
            }


            Timer.Add(Time.deltaFixed * 2, () =>
            {
                PostSetup();
                Add <ProcessingRelease>();
            });
        }
Exemplo n.º 2
0
        void Awake()
        {
            for (var i = 0; i < pluggables.Count; i++)
            {
                pluggables[i].Plug();
            }

            Toolbox.Add(dataGameSession);
            Toolbox.Add(dataGameSettings);

            ProcessingFastPool <Timer> .Instance.Populate(50);
        }
Exemplo n.º 3
0
 /// <summary>
 /// <para>Adds an object to the toolbox by type. It is mainly used to add processing scripts.</para>
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 protected static T Add <T>() where T : new()
 {
     return(Toolbox.Add <T>());
 }
Exemplo n.º 4
0
 public override void Plug()
 {
     Toolbox.Add <ProcessorConsole>().Setup(commandsDebug);
 }