Exemple #1
0
        /// <summary>
        /// Returns the data associated with the current sub category
        /// </summary>
        /// <returns></returns>
        public SubCategoryData GetCurrentSubCategoryData()
        {
            int categoryIndex    = shopView.GetCurrentCategoryIndex();
            int subCategoryIndex = shopView.GetCurrentSubCategoryIndex();

            SubCategoryData subCategoryData = shopData.categories[categoryIndex].subCategories[subCategoryIndex];

            return(subCategoryData);
        }
Exemple #2
0
 /// <summary>
 /// Set the selected skin to _skin
 /// </summary>
 /// <param name="_skin"></param>
 public void SelectSkin(Skin _skin)
 {
     subCategoryVisuals[shopView.GetCurrentSubCategoryIndex()].SelectSkin(_skin);
 }