예제 #1
0
 public void CopyFrom(ConfigBaseRenderingData source)
 {
     this.properties = new BaseRenderingProperty[source.properties.Length];
     for (int i = 0; i < this.properties.Length; i++)
     {
         this.properties[i] = source.properties[i].Clone();
     }
 }
예제 #2
0
        public virtual void SetupTransition(ConfigBaseRenderingData target)
        {
            Dictionary <string, BaseRenderingProperty> dictionary = new Dictionary <string, BaseRenderingProperty>();

            for (int i = 0; i < target.properties.Length; i++)
            {
                dictionary.Add(target.properties[i].propertyName, target.properties[i]);
            }
            for (int j = 0; j < this.properties.Length; j++)
            {
                if (dictionary.ContainsKey(this.properties[j].propertyName))
                {
                    this.properties[j].SetupTransition(dictionary[this.properties[j].propertyName]);
                }
                else
                {
                    this.properties[j].SetupTransition(null);
                }
            }
        }