private void Start() { dataBinding = CoreServicesInstaller.Resolve <DataBindingService>(); dataBinding.Bind <float>(Constants.DATABINDING_CAMERA_ZOOM, this); dataBinding.Bind <Vector3>(Constants.DATABINDING_CAMERA_POSITON, this); dataBinding.Bind <bool>(cameraInstancePath, this); }
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); }
protected virtual void Awake() { component = GetComponent <T>(); databinding = CoreServicesInstaller.Resolve <DataBindingService>(); }