Beispiel #1
0
        protected override void OnCreate()
        {
            base.OnCreate();

            _mailbox = Resources.Load <Mailbox>("Objects/Mailbox");

            _sceneLifeCycle = Resources.Load <SceneLifeCycle>("Objects/LifeCycle");
            _sceneLifeCycle.Play.AddListener(this.OnPlay);

            _tasks = new Dictionary <string, Tasks.UpdateHubTask>();
        }
Beispiel #2
0
        protected override void OnCreate()
        {
            base.OnCreate();

            _mailbox = Resources.Load <Mailbox>("Objects/Mailbox");
            _mailbox.SubscribeToTaskType <Tasks.UpdateInventoryTask>(this);

            _spriteDatabase = Resources.Load <SpriteLookUp>("Objects/SpriteLookUp");

            _sceneLifeCycle = Resources.Load <SceneLifeCycle>("Objects/LifeCycle");
            _sceneLifeCycle.Play.AddListener(this.OnPlay);

            _tasks = new Dictionary <string, Tasks.UpdateInventoryTask>();
        }
        protected override void OnCreate()
        {
            base.OnCreate();

            _ecbSystem = World
                         .GetOrCreateSystem <EndSimulationEntityCommandBufferSystem>();

            _mailbox = Resources.Load <Mailbox>("Objects/Mailbox");

            _lifeCycle = Resources.Load <SceneLifeCycle>("Objects/LifeCycle");
            _lifeCycle.Play.AddListener(this.OnPlay);

            _tasksToBeScheduled = new Dictionary <string, Tasks.FollowPathTask>();
            this.RunningTasks   = new Dictionary <string, Tasks.FollowPathTask>();
        }