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(); }
public void SetupGameAudioComponent(GameAudioComponent component) { component.SfxCoordinator = this; }