Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 5
0
 /// <inheritdoc/>
 public bool Equals(IOutlineSettings other)
 {
     return(OutlineSettings.Equals(_outlineSettings, other));
 }
Exemplo n.º 6
0
 /// <inheritdoc/>
 public override bool Equals(object other)
 {
     return(OutlineSettings.Equals(this, other as IOutlineSettings));
 }
 private void OnEnable()
 {
     _settings = (OutlineSettings)target;
 }
Exemplo n.º 8
0
 public void Init()
 {
     _settings = ScriptableObject.CreateInstance <OutlineSettings>();
     Init(_settings);
 }