コード例 #1
0
        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);
        }
コード例 #2
0
    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);
    }
コード例 #3
0
        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);
        }
コード例 #4
0
    /// <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();
    }
コード例 #5
0
ファイル: ProfileManager.cs プロジェクト: huannguyenfit/MeGUI
        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;
        }
コード例 #6
0
ファイル: ProfileManager.cs プロジェクト: huannguyenfit/MeGUI
 public void SetSettings(GenericSettings s)
 {
     bySettingsType(s.GetType()).SetSettings(s);
 }
コード例 #7
0
 public virtual bool Equals(GenericSettings other)
 {
     return PropertyEqualityTester.AreEqual(this, other);
 }
コード例 #8
0
ファイル: AudioCodecSettings.cs プロジェクト: pphh77/MeGui
 public bool Equals(GenericSettings other)
 {
     // This works for all known descendants
     return(other == null ? false : PropertyEqualityTester.AreEqual(this, other));
 }
コード例 #9
0
 public bool Equals(GenericSettings other)
 {
     return(other == null ? false : PropertyEqualityTester.AreEqual(this, other));
 }
コード例 #10
0
 public bool Equals(GenericSettings other)
 {
     return other == null ? false : PropertyEqualityTester.AreEqual(this, other);
 }
コード例 #11
0
 public bool Equals(GenericSettings other)
 {
     // This works for all known descendants
     return other == null ? false : PropertyEqualityTester.AreEqual(this, other);
 }
コード例 #12
0
ファイル: VideoCodecSettings.cs プロジェクト: pphh77/MeGui
 public virtual bool Equals(GenericSettings other)
 {
     return(PropertyEqualityTester.AreEqual(this, other));
 }
コード例 #13
0
	/// <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();
	}