private void Start() { playerPresenter.Setup(); OnChangeStageLevel?.Invoke(stageLevel); OnChangeSpawnCount?.Invoke(spawnCount); OnScrollReset(); }
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); }