/// <summary> /// Initializes the components needed in order to operate the application. /// </summary> void InitializeComponents() { #region RunTimeApplication try { runTimeApplication = this.GetComponent <RunTimeApplication>(); } catch (Exception ex) { runTimeApplication = new RunTimeApplication(); } runTimeApplication.InitializeRuntimeComponents(); #endregion }
/// <summary> /// Initializes the components needed in order to operate the application. /// </summary> void InitializeComponents() { #region Privacy Policy try { privacyPolicy = this.GetComponent <PrivacyPolicyDisclaimair>(); } catch (Exception ex) { privacyPolicy = new PrivacyPolicyDisclaimair(); } privacyPolicy.OnHasApprovedPrivacyPolicy += HandlePrivacyPolicyAccepted; #endregion #region Instructions try { howToInstructor = this.GetComponent <HowToInstructor>(); } catch (Exception ex) { howToInstructor = new HowToInstructor(); } howToInstructor.OnHasSeenAllInstructions += HandleHowToInstructionsFinished; howToInstructor.OnHasSkippedInstructions += HandleHowToInstructionsSkipped; #endregion #region RunTimeApplication try { runTimeApplication = this.GetComponent <RunTimeApplication>(); } catch (Exception ex) { runTimeApplication = new RunTimeApplication(); } runTimeApplication.InitializeRuntimeComponents(); #endregion }