protected override void Initialize() { base.Initialize(); var gamePlayEntity = this.EntityManager.Find(GamePlayEntityPath); if (gamePlayEntity != null) { this.gamePlay = this.EntityManager.Find(GamePlayEntityPath).FindComponent<GameplayBehavior>(); } }
protected override void ResolveDependencies() { base.ResolveDependencies(); var gamePlayEntity = this.EntityManager.Find(GamePlayEntityPath); if (gamePlayEntity != null) { this.gamePlay = this.EntityManager.Find(GamePlayEntityPath).FindComponent<GameplayBehavior>(); this.gamePlay.GameReset += this.GamePlayGameReset; } }
protected override void ResolveDependencies() { base.ResolveDependencies(); this.gamePlay = this.EntityManager.Find(GamePlayEntityPath).FindComponent<GameplayBehavior>(); }
protected override void ResolveDependencies() { base.ResolveDependencies(); var leftJoystickEntity = this.EntityManager.Find(LeftJoystickEntityPath); if (leftJoystickEntity != null) { this.leftJoystick = leftJoystickEntity.FindComponent<JoystickComponent>(); } var fireButtonEntity = this.EntityManager.Find(FireButtonEntityPath); if (fireButtonEntity != null) { this.fireButton = this.EntityManager.Find(FireButtonEntityPath).FindComponent<JoystickComponent>(); } var gamePlayEntity = this.EntityManager.Find(GamePlayEntityPath); if (gamePlayEntity != null) { this.gamePlay = this.EntityManager.Find(GamePlayEntityPath).FindComponent<GameplayBehavior>(); this.gamePlay.Player = this.Owner; this.gamePlay.GameReset += this.GamePlayGameReset; } }