Пример #1
0
        protected override void Initialize()
        {
            base.Initialize();

            // Set up
            mapManager       = MapManager.getInstance();
            mouseManager     = MouseEventListenerManager.getInstance();
            uiManager        = UIManager.getInstance();
            materialsManager = Materials.getInstance();
            taskManager      = TaskManager.getInstance();
            tweenManager     = TweenManager.getInstance();

            // Set up GUI
            uiManager.init();
        }
Пример #2
0
        public Tween(DisplayObject dob, PropType propType, int targetNum, int timeTakenMils, Easing.Equations ease)
        {
            tweenManager  = TweenManager.getInstance();
            ds            = dob;
            propertyType  = propType;
            totalDuration = timeTakenMils;
            easeType      = ease;

            switch (propType)
            {
            case PropType.X:
                startingNumX = ds.x;
                targetNumX   = targetNum - ds.x;
                break;

            case PropType.Y:
                startingNumX = ds.y;
                targetNumX   = targetNum - ds.y;
                break;
            }
        }