public void Execute() { var model = new Model.Model(new EntityAdaptorFactory(), new EntityStorage()); var view = new View.View(new EntitySelectionDropdownHandler(), Global.Wrapper); var presenter = new Presenter.Presenter(model, view); Core.print("Grind-O-Meter loaded."); }
void Start() { model = new Model.Model(); view = new View.View(); view.AddPlayerCharacter(model.player.character.gameObject.transform); print(model.player.character.gameObject.transform); BuildLevel(); view.OnMove += MoveEvent; view.OnJump += JumpEvent; view.OnThink += ThinkEvent; model.gameOver = false; //Camera.main.orthographicSize = 15.0f; }
//View.PlayerSpaceship playerSpaceship; void Start() { model = new Model.Model(); view = new View.View(); view.AddPlayerSpaceship(model.player.spaceship.gameObject.transform); model.AddEnemySpaceship(); //int j = model.hazards.Count - 1; view.AddEnemySpaceship(model.hazards[0].GetKind(), model.hazards[0].GetGameObject().transform); removeHazards = new List<int>(); //view.ShootEvent += ShootEvent; view.OnMove += MoveEvent; model.gameOver = false; view.restartText.gUIText.text = ""; view.gameOverText.gUIText.text = ""; model.score = 0; UpdateScore(); // StartCoroutine(SpawnWaves()); }