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>(); }
protected override void ResolveDependencies() { base.ResolveDependencies(); this.bubleParticles = this.Owner.FindChild("BubbleParticles").FindComponent<ParticleSystem2D>(); this.blockBuilderBehavior = this.EntityManager.Find("BlockBuilder").FindComponent<BlockBuilderBehavior>(); }