예제 #1
0
        // --------------------------------------------------------------
        // Methods (General)
        // --------------------------------------------------------------

        /// <summary>
        /// Block in which to display the main menu.
        /// </summary>
        /// <param name="heroKitProperty">Hero property info to display in the menu.</param>
        /// <param name="heroKitEditor">Hero kit editor.</param>
        public static void Block(HeroKitProperty heroKitProperty, HeroKitEditor heroKitEditor)
        {
            // exit early if object is null
            if (heroKitProperty == null)
            {
                return;
            }

            // save the editor
            heroEditor = heroKitEditor;

            // draw components
            DrawBlock();
        }
예제 #2
0
        // --------------------------------------------------------------
        // Methods (General)
        // --------------------------------------------------------------

        /// <summary>
        /// Block in which to display the main menu.
        /// </summary>
        /// <param name="heroKitObject">Hero object info to display in the menu.</param>
        /// <param name="heroKitEditor">Hero kit editor.</param>
        public static void Block(HeroObject heroKitObject, HeroKitEditor heroKitEditor)
        {
            // exit early if object is null
            if (heroKitObject == null)
            {
                return;
            }

            // assign hero object to this class
            heroObject = heroKitObject;

            // save the editor
            heroEditor = heroKitEditor;

            // draw components
            DrawBlock();
        }