public void LoggingSettings_WhenAlways_ShouldGetHomePath() { //Arrange var loggingSettings = new LoggingSettings(); var genericSettings = new GenericSettings(); //Act var result = loggingSettings.homePath; //Assert Assert.Equal(genericSettings.homePath, result); }
public override void OnInspectorGUI() { GenericSettings settings = (GenericSettings)target; settings.Narration = EditorGUILayout.Toggle("Narration", settings.Narration); settings.UseRecording = EditorGUILayout.Toggle("Use Recording", settings.UseRecording); settings.Autoplay = EditorGUILayout.Toggle("Autoplay", settings.Autoplay); settings.Arrows = EditorGUILayout.Toggle("Arrows", settings.Arrows); settings.Music = EditorGUILayout.Toggle("Music", settings.Music); settings.Sound = EditorGUILayout.Toggle("Sound", settings.Sound); settings.Tutorials = EditorGUILayout.Toggle("Tutorials", settings.Tutorials); }
public void FileGeneratorSettings_WhenAlways_ShouldGetHomePath() { //Arrange var fileGeneratorSettings = new FileGeneratorSettings(); var genericSettings = new GenericSettings(); //Act var result = fileGeneratorSettings.homePath; //Assert Assert.Equal(genericSettings.homePath, result); }
/// <summary> /// Unity method. /// Awake this instance. /// </summary> protected virtual void Awake() { if (instance == null) { instance = this; createdInstance = true; } // Initialize the wrappers you want to use AnimationWrapper.Instance.GetType(); RenderWrapper.Instance.GetType(); SoundWrapper.Instance.GetType(); TextWrapper.Instance.GetType(); LocalizationWrapper.Instance.GetType(); }
public void SetSettings(GenericSettings s) { if (s.GetType() != SettingsType) { throw new Exception("Wrong type of settings used"); } Profile p = ByName(ProfileManager.ScratchPadName); if (p == null) { p = genScratchpad(); profiles.Add(p); } p.BaseSettings = s; SelectedProfile = p; }
public void SetSettings(GenericSettings s) { bySettingsType(s.GetType()).SetSettings(s); }
public virtual bool Equals(GenericSettings other) { return PropertyEqualityTester.AreEqual(this, other); }
public bool Equals(GenericSettings other) { // This works for all known descendants return(other == null ? false : PropertyEqualityTester.AreEqual(this, other)); }
public bool Equals(GenericSettings other) { return(other == null ? false : PropertyEqualityTester.AreEqual(this, other)); }
public bool Equals(GenericSettings other) { return other == null ? false : PropertyEqualityTester.AreEqual(this, other); }
public bool Equals(GenericSettings other) { // This works for all known descendants return other == null ? false : PropertyEqualityTester.AreEqual(this, other); }
public virtual bool Equals(GenericSettings other) { return(PropertyEqualityTester.AreEqual(this, other)); }