コード例 #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>();
        }
コード例 #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>();
        }
コード例 #3
0
        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>();
        }