示例#1
0
        public void Move(Vector3 fromPos, GUIService guiService, string panelId, string viewID, float duration)
        {
            var panel         = guiService.GetPanelView(panelId);
            var rectTransform = panel.GetView(viewID).GetComponent <RectTransform>();

            Move(fromPos, rectTransform, duration);
        }
示例#2
0
        public void Init(T[] steps, GUIService guiService, DataBindingService databinding)
        {
            this.steps       = steps;
            this.guiService  = guiService;
            this.databinding = databinding;

            stepIndex = 0;
            LogWrapper.DebugLog("[{0}] {1} init with step count {2}", GetType(), id, steps.Length);

            // setup the awake function
            current    = TutorialState.AwakeStep;
            elapseTime = 0f;

            panelView = guiService.GetPanelView(Constants.PANEL_VIEW_ID_TUTORIAL);
            if (panelView == null)
            {
                throw new System.NullReferenceException("Could not find tutorial panel, please condif a panle in the gui config file with id: " + Constants.PANEL_VIEW_ID_TUTORIAL);
            }

            EventDispatcherService <ActiveTutorial <T> > .Dispatch(Constants.EVENT_TUT_INIT, this);
        }