Beispiel #1
0
        public DisplayRoot(FlashStage component)
        {
            stage       = component;
            name        = "root";
            drawOptions = DrawOptions.DEFAULT;

            _stageRenderer = new DisplayTreeRenderer(stage);
        }
Beispiel #2
0
        void OnResourcesLoaded()
        {
            stage = GetComponent <FlashStage>();

            // in case when flash resources has been updated in runtime
            // it is necessary remove all previous content
            stage.root.RemoveChildren();

            CreateScene();
        }
Beispiel #3
0
 public TouchController(FlashStage stage)
 {
     _stage = stage;
     _stage.input.TouchBegan += touch => _justPressedTouches.Add(touch);
     _stage.input.TouchEnded += touch => _justReleasedTouches.Add(touch);
 }
Beispiel #4
0
 public DisplayTreeRenderer(FlashStage stage)
 {
     _stage       = stage;
     _drawOptions = new DrawOptions();
 }