예제 #1
0
 private void Start()
 {
     playerPresenter.Setup();
     OnChangeStageLevel?.Invoke(stageLevel);
     OnChangeSpawnCount?.Invoke(spawnCount);
     OnScrollReset();
 }
예제 #2
0
 private void Awake()
 {
     playerPresenter = GetComponent<PlayerPresenter>();    
     mapPresenter = GetComponent<MapPresenter>();
     enemyPresenter = GetComponent<EnemyPresenter>();
     bulletPresenter = GetComponent<BulletPresenter>();
     gunPresenter = GetComponent<GunPresenter>();
     playerPresenter.Setup(playerModel,gunModel);
     enemyPresenter.Setup(enemyModel,gunModel);
     bulletPresenter.Setup(bulletModel);
     gunPresenter.Setup(gunModel);
     mapPresenter.Setup(mapModel);
 }