Пример #1
0
        /// <summary>
        /// Additional display setup functionality
        /// </summary>
        public override void SetupDisplay()
        {
            base.SetupDisplay();

            GameObjectHelper.SafeSetActive(StarsWonGameObject, CurrentItem.IsUnlocked);
            GameObjectHelper.SafeSetActive(Star1WonGameObject, CurrentItem.IsStarWon(1));
            GameObjectHelper.SafeSetActive(Star1NotWonGameObject, !CurrentItem.IsStarWon(1));
            GameObjectHelper.SafeSetActive(Star2WonGameObject, CurrentItem.IsStarWon(2));
            GameObjectHelper.SafeSetActive(Star2NotWonGameObject, !CurrentItem.IsStarWon(2));
            GameObjectHelper.SafeSetActive(Star3WonGameObject, CurrentItem.IsStarWon(3));
            GameObjectHelper.SafeSetActive(Star3NotWonGameObject, !CurrentItem.IsStarWon(3));
            GameObjectHelper.SafeSetActive(Star4WonGameObject, CurrentItem.IsStarWon(4));
            GameObjectHelper.SafeSetActive(Star4NotWonGameObject, !CurrentItem.IsStarWon(4));
        }