void OnGUI()
        {
            GUI.skin.box.fontSize = 50;

            var buttons = new HPButtonType[] {
                HPButtonType.ONE,
                HPButtonType.TWO,
                HPButtonType.THREE,
                HPButtonType.FOUR,
                HPButtonType.HOME
            };

            foreach (var b in buttons)
            {
                if (HPButton.GetButton(b))
                {
                    GUILayout.Box("HP Button " + b.ToString());
                }
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (ACButton != null)
            {
                ACButton.Dispose();
                ACButton = null;
            }

            if (ACModsView != null)
            {
                ACModsView.Dispose();
                ACModsView = null;
            }

            if (ACView != null)
            {
                ACView.Dispose();
                ACView = null;
            }

            if (ArmorButton != null)
            {
                ArmorButton.Dispose();
                ArmorButton = null;
            }

            if (DefensiveAbilitiesButton != null)
            {
                DefensiveAbilitiesButton.Dispose();
                DefensiveAbilitiesButton = null;
            }

            if (DeflectionButton != null)
            {
                DeflectionButton.Dispose();
                DeflectionButton = null;
            }

            if (DodgeButon != null)
            {
                DodgeButon.Dispose();
                DodgeButon = null;
            }

            if (DRButton != null)
            {
                DRButton.Dispose();
                DRButton = null;
            }

            if (FlatFootedButton != null)
            {
                FlatFootedButton.Dispose();
                FlatFootedButton = null;
            }

            if (FortButton != null)
            {
                FortButton.Dispose();
                FortButton = null;
            }

            if (HDButton != null)
            {
                HDButton.Dispose();
                HDButton = null;
            }

            if (HPButton != null)
            {
                HPButton.Dispose();
                HPButton = null;
            }

            if (HPModsButton != null)
            {
                HPModsButton.Dispose();
                HPModsButton = null;
            }

            if (HPView != null)
            {
                HPView.Dispose();
                HPView = null;
            }

            if (ImmuneButton != null)
            {
                ImmuneButton.Dispose();
                ImmuneButton = null;
            }

            if (NaturalButton != null)
            {
                NaturalButton.Dispose();
                NaturalButton = null;
            }

            if (OtherView != null)
            {
                OtherView.Dispose();
                OtherView = null;
            }

            if (RefButton != null)
            {
                RefButton.Dispose();
                RefButton = null;
            }

            if (ResistButton != null)
            {
                ResistButton.Dispose();
                ResistButton = null;
            }

            if (SavesView != null)
            {
                SavesView.Dispose();
                SavesView = null;
            }

            if (ShieldButton != null)
            {
                ShieldButton.Dispose();
                ShieldButton = null;
            }

            if (SRButton != null)
            {
                SRButton.Dispose();
                SRButton = null;
            }

            if (TouchButton != null)
            {
                TouchButton.Dispose();
                TouchButton = null;
            }

            if (WeaknessButton != null)
            {
                WeaknessButton.Dispose();
                WeaknessButton = null;
            }

            if (WillButton != null)
            {
                WillButton.Dispose();
                WillButton = null;
            }
        }