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(); }
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; } }