/** when a world is selected and confirmed, pass to stage manager to load stage map and turn world map off * * @params worldLevel is the world level of the button selected * */ public void OnSelectWorldProceedButton(int worldLevel) { StageMapManagerScript stageManager = stageMapManager.GetComponent <StageMapManagerScript>(); stageManager.LoadStageMap(worldLevel, this.worldStageNames, this.worldStageProgress); worldSelect.SetActive(false); }
//when the stage is selected and confirmed, pass to stage manager to proceed public void Play() { ///needs to change depending on gameplay StageMapManagerScript mapManager = stageMapManager.GetComponent <StageMapManagerScript>(); mapManager.OnSelectStagePlayButton(this.stageLevel); }
//when a stage is selected, pass control to stage manager to proceed public void OnSelectStage() { StageMapManagerScript stageManager = stageMapManager.GetComponent <StageMapManagerScript>(); stageManager.OnSelectStageButton(this.stageLevel); }