public DisplayRoot(FlashStage component) { stage = component; name = "root"; drawOptions = DrawOptions.DEFAULT; _stageRenderer = new DisplayTreeRenderer(stage); }
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(); }
public TouchController(FlashStage stage) { _stage = stage; _stage.input.TouchBegan += touch => _justPressedTouches.Add(touch); _stage.input.TouchEnded += touch => _justReleasedTouches.Add(touch); }
public DisplayTreeRenderer(FlashStage stage) { _stage = stage; _drawOptions = new DrawOptions(); }