示例#1
0
        protected override void ResolveDependencies()
        {
            base.ResolveDependencies();

            this.bubleParticles       = this.Owner.FindChild("BubbleParticles").FindComponent <ParticleSystem2D>();
            this.blockBuilderBehavior = this.EntityManager.Find("BlockBuilder").FindComponent <BlockBuilderBehavior>();
        }
        protected override void Initialize()
        {
            base.Initialize();

            this.scorePanel = this.EntityManager.Find<ScorePanel>("ScorePanel");

            //Backscene 
            var backContext = WaveServices.ScreenContextManager.FindContextByName("BackContext");
            if (backContext != null)
            {
                this.backScene = backContext.FindScene<BackgroundScene>();
            }

            this.blockBuilder = this.EntityManager.Find("BlockBuilder").FindComponent<BlockBuilderBehavior>();

            this.squid = this.EntityManager.Find("Squid").FindComponent<SquidBehavior>();
        }
示例#3
0
        protected override void ResolveDependencies()
        {
            base.ResolveDependencies();

            this.bubleParticles = this.Owner.FindChild("BubbleParticles").FindComponent<ParticleSystem2D>();
            this.blockBuilderBehavior = this.EntityManager.Find("BlockBuilder").FindComponent<BlockBuilderBehavior>();
        }