Ejemplo n.º 1
0
        public void OnActivate()
        {
            if (DualityApp.ExecEnvironment == DualityApp.ExecutionEnvironment.Editor)
            {
                return;
            }

            this.debugTextRenderer = GameObj.Scene.FindComponent <TextRenderer>();
            gameAudioComponent     = GameObj.Scene.FindComponent <GameAudioComponent>();
            this.transform         = GameObj.GetComponent <Transform>();

            this.GameBoard = new GameBoard();
            this.gameAI    = new GameAI(this.GameBoard);

            ResetGame();
        }
Ejemplo n.º 2
0
 public void SetupGameAudioComponent(GameAudioComponent component)
 {
     component.SfxCoordinator = this;
 }