コード例 #1
0
    private void Setup(LevelArenaSetData templateArg)
    {
        setNum  = templateArg.setNum;
        setName = templateArg.setName;

        totalArenasInSet = templateArg.totalArenasInSet;
    }
コード例 #2
0
    /// <summary>
    /// Returns an invalid arena set.
    /// Used for denoting when there will be no next arena.
    /// </summary>
    /// <returns></returns>
    private LevelArenaSetData GetEndArenaSetData()
    {
        LevelArenaSetData returnArenaSetData = new LevelArenaSetData();

        returnArenaSetData.setNum = totalNumberOfArenaSets + 1;

        return(returnArenaSetData);
    }
コード例 #3
0
    /// <summary>
    /// Sets the arena set data based on the given set number.
    /// </summary>
    /// <param name="arenaSetNumArg"></param>
    private void SetupArenaSetData(int arenaSetNumArg)
    {
        // else if all arena sets have been completed
        if (arenaSetNumArg > totalNumberOfArenaSets)
        {
            // set arena set to an invalid arena set to denote that no next arena
            arenaSetData = GetEndArenaSetData();
        }
        // else still some arena sets left
        else
        {
            // get set template related to given set number
            LevelArenaSetDataTemplate startingSetTemp = AssetRefMethods.
                                                        LoadBundleAssetLevelArenaSetDataTemplate(arenaSetNumArg);

            // set the set data from the template
            arenaSetData = new LevelArenaSetData(startingSetTemp);
        }
    }
コード例 #4
0
    /// <summary>
    /// Sets the arena data to the tutorial start.
    /// </summary>
    public void SetupTutorialArenaData()
    {
        ResetRunProgress();

        arenaSetData = GetTutorialArenaSetData();
    }
コード例 #5
0
 public LevelArenaSetData(LevelArenaSetData templateArg)
 {
     Setup(templateArg);
 }