Esempio n. 1
0
 /// <summary>
 /// Shares <see cref="OutlineLayers"/> with another <see cref="OutlineEffect"/> instance.
 /// </summary>
 /// <param name="other">Effect to share <see cref="OutlineLayers"/> with.</param>
 /// <seealso cref="OutlineLayers"/>
 public void ShareLayersWith(OutlineEffect other)
 {
     if (other)
     {
         CreateLayersIfNeeded();
         other._outlineLayers = _outlineLayers;
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Shares <see cref="OutlineLayers"/> with another <see cref="OutlineEffect"/> instance.
        /// </summary>
        /// <param name="other">Effect to share <see cref="OutlineLayers"/> with.</param>
        /// <seealso cref="OutlineLayers"/>
        public void ShareLayersWith(OutlineEffect other)
        {
            if (other)
            {
                if (_outlineLayers == null)
                {
                    _outlineLayers = ScriptableObject.CreateInstance <OutlineLayerCollection>();
                }

                other._outlineLayers = _outlineLayers;
                other._changed       = true;
            }
        }
 private void OnEnable()
 {
     _effect = (OutlineEffect)target;
 }