public void Start() { var container = ContainerSingletone.Container; var boundaryCenterCoordinate = Plane.transform.position; var boundaryScale = Plane.transform.localScale; var spawner1=new EntitySpawner(); container.BuildUp(spawner1); spawner1.Start(SpawnerPlace1.transform.position); var spawner2 = new EntitySpawner(); container.BuildUp(spawner2); spawner2.Start(SpawnerPlace2.transform.position); var spawner3 = new EntitySpawner(); container.BuildUp(spawner3); spawner3.Start(SpawnerPlace3.transform.position); var scoreManager = container.Resolve<IScoreManager>(); var audioPlayer = container.Resolve<IAudioPlayer> (); audioPlayer.PlayLoop("MainTheme"); scoreManager.ScoreManipulator = _scorePlaneManuManipulator; _countdownTimer = container.Resolve<ICountdownTimer>(); _countdownTimer.StartCountdown(30f, ShowMenu); _scorePrinter = container.Resolve<IScorePrinter> (); _scorePrinter.CorrectScorePlace = CorrectScorePlace; _scorePrinter.IncorrectScorePlace = IncorrectScorePlace; _scorePrinter.FontSize = fontSize; _menuButtonFactory = container.Resolve<IMenuButtonFactory>(); BuildSelectedCharacter (); BuildAdditionalButton(); }
//----------------------------------------------------- public SequenceDesigner Design(NadirContext context, object distillationResult, IScorePrinter printOutput, bool actuallyDesign) { string designerName = this.globalToDesign; if ("" == designerName) { // If there's a defined designer, then use that one! // foreach (NadirAST global in ((NadirAST)parseResult).NadirChildren) { if (global.Type == NadirParser.SeqDesignerDef) { designerName = global.Symbol.Name; break; } } } Distiller distiller = new Distiller(context); SequenceDesigner sequenceDesigner = distiller.SequenceDesign(context, distillationResult, designerName, printOutput, actuallyDesign); return sequenceDesigner; }