/// <summary>
        /// Resolves the dependencies needed for this instance to work.
        /// </summary>
        protected override void ResolveDependencies()
        {
            this.gamePlayScene   = this.Scene as GamePlayScene;
            this.scoreboardPanel = this.gamePlayScene.EntityManager.Find <ScoreboardPanel>("scoreboardPanel");
            this.target          = this.gamePlayScene.EntityManager.Find <Entity>("BallTarget");
            this.targetTransform = this.target.FindComponent <Transform2D>();

            this.start          = this.gamePlayScene.EntityManager.Find <Entity>("BallStart");
            this.startTransform = this.start.FindComponent <Transform2D>();
        }
        /// <summary>
        /// Resolves the dependencies needed for this instance to work.
        /// </summary>
        protected override void ResolveDependencies()
        {
            this.gamePlayScene = this.Scene as GamePlayScene;
            this.scoreboardPanel = this.gamePlayScene.EntityManager.Find<ScoreboardPanel>("scoreboardPanel");
            this.target = this.gamePlayScene.EntityManager.Find<Entity>("BallTarget");
            this.targetTransform = this.target.FindComponent<Transform2D>();

            this.start = this.gamePlayScene.EntityManager.Find<Entity>("BallStart");
            this.startTransform = this.start.FindComponent<Transform2D>();
        }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PauseScene" /> class.
 /// </summary>
 /// <param name="gameplayScene">The gameplay scene.</param>
 public PauseScene(GamePlayScene gameplayScene)
 {
     this.gameplayScene = gameplayScene;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PauseScene" /> class.
 /// </summary>
 /// <param name="gameplayScene">The gameplay scene.</param>
 public PauseScene(GamePlayScene gameplayScene)
 {
     this.gameplayScene = gameplayScene;
 }