AIEditor.Gui.CommandDisplay.TimedActivity C# (CSharp) Method

TimedActivity() public method

public TimedActivity ( float secondDifference, double secondDifferenceSquaredDividedByTwo, float secondsPassedLastFrame ) : void
secondDifference float
secondDifferenceSquaredDividedByTwo double
secondsPassedLastFrame float
return void
        public override void TimedActivity(float secondDifference, double secondDifferenceSquaredDividedByTwo, float secondsPassedLastFrame)
        {
            base.TimedActivity(secondDifference, secondDifferenceSquaredDividedByTwo, secondsPassedLastFrame);

            float multiplier = 18 / SpriteManager.Camera.PixelsPerUnitAt(this.Z);

            mCreateLink.ScaleX = .5f * multiplier;
            mCreateLink.ScaleY = .5f * multiplier;

            mCreateLink.RelativePosition.X = -1.5f * multiplier;
            mCreateLink.RelativePosition.Y = 1.5f * multiplier;
        }