protected virtual void CreateStagesPost() { Transform tStages = transform.CreateChild(ROOT_STAGES_POST_NAME); _stagesPost = tStages.GetComponent <QuickStageGroup>(); if (!_stagesPost) { //Init the default Stages Post _stagesPost = tStages.gameObject.AddComponent <QuickStageGroup>(); QuickStageFade fade = _stagesPost.transform.CreateChild("FadeOut").GetOrCreateComponent <QuickStageFade>(); fade._fadeType = QuickStageFade.FadeType.FadeOut; } _stagesPost.OnFinish += QuickUtils.CloseApplication; }
protected virtual void CreateStagesMain() { Transform tStages = transform.CreateChild(ROOT_STAGES_MAIN_NAME); _stagesMain = tStages.GetComponent <QuickStageGroup>(); if (!_stagesMain) { //Init the default Stages Main _stagesMain = tStages.gameObject.AddComponent <QuickStageGroup>(); QuickStageBase dummy = _stagesMain.transform.CreateChild("DeleteMe").GetOrCreateComponent <QuickStageBase>(); dummy._maxTimeOut = -1; } _stagesMain.OnFinish += Finish; }
protected virtual void CreateStagesPre() { Transform tStages = transform.CreateChild(ROOT_STAGES_PRE_NAME); _stagesPre = tStages.GetComponent <QuickStageGroup>(); if (!_stagesPre) { //Init the default Stages Pre _stagesPre = tStages.gameObject.AddComponent <QuickStageGroup>(); _stagesPre.transform.CreateChild("HMDAdjustment").GetOrCreateComponent <QuickStageHMDAdjustment>(); _stagesPre.transform.CreateChild("Calibration").GetOrCreateComponent <QuickStageCalibration>(); _stagesPre.transform.CreateChild("FadeIn").GetOrCreateComponent <QuickStageFade>(); } _stagesPre.OnFinish += OnFinishStagesPre; }
protected virtual void Reset() { _ifGroup = transform.CreateChild("__IF__").GetOrCreateComponent <QuickStageGroup>(); _elseGroup = transform.CreateChild("__ELSE__").GetOrCreateComponent <QuickStageGroup>(); }