void Start() { GameObject next = GameObject.Find("Next"); script = next.GetComponent <RunConfigurations>(); Init(); }
void Start() { marker = GetComponent <VRTK_InteractableObject>(); GameObject next = GameObject.Find("Next"); script = next.GetComponent <RunConfigurations>(); Init(); }
/// <summary> /// This method will run the passed run configuration, if it is present in the configuration. /// </summary> /// <param name="runConfigurationName">Desired run configuration.</param> public void Run(string runConfigurationName) { if (RunConfigurations.ContainsKey(runConfigurationName)) { LinearSequence runConfiguration = RunConfigurations[runConfigurationName]; foreach (Step step in runConfiguration.Steps) { logger.Info("Start running step: {0}", step.Name); step.Run(Sequences, runConfiguration.DefaultRunProfile, 0, ConfigParameters); } if (ConfigParameters.ClearRunHistory) { clearRunHistory(); } } else { logger.Error(string.Format("Run configuration '{0}' not found.", runConfigurationName)); } }