コード例 #1
0
    /** 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);
    }
コード例 #2
0
    //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);
    }
コード例 #3
0
    //when a stage is selected, pass control to stage manager to proceed
    public void OnSelectStage()
    {
        StageMapManagerScript stageManager = stageMapManager.GetComponent <StageMapManagerScript>();

        stageManager.OnSelectStageButton(this.stageLevel);
    }