예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OutlineLayer"/> class.
        /// </summary>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="settings"/> is <see langword="null"/>.</exception>
        public OutlineLayer(OutlineSettings settings)
        {
            if (settings is null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            _settings.OutlineSettings = settings;
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OutlineLayer"/> class.
        /// </summary>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="settings"/> is <see langword="null"/>.</exception>
        public OutlineLayer(OutlineSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            _settings.OutlineSettings = settings;
        }
예제 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OutlineLayer"/> class.
        /// </summary>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="settings"/> is <see langword="null"/>.</exception>
        public OutlineLayer(OutlineSettings settings)
        {
            if (ReferenceEquals(settings, null))
            {
                throw new ArgumentNullException("settings");
            }

            _settings.OutlineSettings = settings;
        }
예제 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OutlineLayer"/> class.
        /// </summary>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="settings"/> is <see langword="null"/>.</exception>
        public OutlineLayer(string name, OutlineSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            _name = name;
            _settings.OutlineSettings = settings;
        }
예제 #5
0
 /// <inheritdoc/>
 public bool Equals(IOutlineSettings other)
 {
     return(OutlineSettings.Equals(_outlineSettings, other));
 }
예제 #6
0
 /// <inheritdoc/>
 public override bool Equals(object other)
 {
     return(OutlineSettings.Equals(this, other as IOutlineSettings));
 }
 private void OnEnable()
 {
     _settings = (OutlineSettings)target;
 }
예제 #8
0
 public void Init()
 {
     _settings = ScriptableObject.CreateInstance <OutlineSettings>();
     Init(_settings);
 }