Ejemplo n.º 1
0
        public void Hide()
        {
            if (UpgradeInfoInstance.PulseAnimation.IsPlaying())
            {
                UpgradeInfoInstance.PulseAnimation.Stop();
            }

            if (structureShown != null)
            {
                structureShown.RangePreviewSprite.Visible = false;
            }
            structureSaveShown = null;
            structureShown     = null;
            Visible            = false;
        }
Ejemplo n.º 2
0
        public void Show(StructureInfoSaveState structureInfo, float xPos, float yPos)
        {
            X = xPos;
            Y = yPos;

            StructureName = structureInfo.StructureName;
            AttackDamageType.ResistanceText = structureInfo.AttackDamageType;
            SatoshiCost                 = structureInfo.SatoshiCostString;
            MinRange.AttributeText      = structureInfo.MinRange;
            MaxRange.AttributeText      = structureInfo.MaxRange;
            AttackSpeed.AttributeText   = structureInfo.AttackSpeed;
            PointOrSplash.AttributeText = structureInfo.PointOrSplash;
            SatoshiCost                 = structureInfo.SatoshiCostString;
            SetIcon(structureInfo.TowerType);
            structureSaveShown = structureInfo;

            CurrentUpgradeAvailabilityState = UpgradeAvailability.NotAvailable;

            MaxRange.CurrentUpgradedState         = AttributeDisplayRuntime.Upgraded.NotUpgraded;
            AttackSpeed.CurrentUpgradedState      = AttributeDisplayRuntime.Upgraded.NotUpgraded;
            AttackDamageType.CurrentUpgradedState = ResistanceDisplayRuntime.Upgraded.NotUpgraded;
            CurrentCostInfoState = CostInfo.Shown;
            Visible = true;
        }