Пример #1
0
		void Awake()
		{
			scriptTarget = (EZAnim)target;
			if (scriptTarget.theStructs == null)
			{
				scriptTarget.theStructs = new List<EZStruct>();
				scriptTarget.theStructs.Add(new EZStruct());

				tempStruct = scriptTarget.theStructs[0];
				tempStruct.animationType = AnimType.EaseOutQuint;
				tempStruct.animationDuration = 1f;
				scriptTarget.theStructs[0] = tempStruct;
			}
			inclusions = new string[] {"System.Single", "System.Int32", "UnityEngine.Vector2", "UnityEngine.Vector3", "UnityEngine.Rect", "UnityEngine.Color", "UnityEngine.Material"};
			inclusionNames = new string[] {"Float", "Int", "Vector2", "Vector3", "Rect", "Color", "Material"};
			methodNameExclusions = new string[] { "Update", "FixedUpdate", "LateUpdate", "Start", "Awake", "OnEnable", "OnDisable" };
		}
Пример #2
0
        void Awake()
        {
            scriptTarget = (EZAnim)target;
            if (scriptTarget.theStructs == null)
            {
                scriptTarget.theStructs = new List <EZStruct>();
                scriptTarget.theStructs.Add(new EZStruct());

                tempStruct = scriptTarget.theStructs[0];
                tempStruct.animationType     = AnimType.EaseOutQuint;
                tempStruct.animationDuration = 1f;
                scriptTarget.theStructs[0]   = tempStruct;
            }
            inclusions           = new string[] { "System.Single", "System.Int32", "UnityEngine.Vector2", "UnityEngine.Vector3", "UnityEngine.Rect", "UnityEngine.Color", "UnityEngine.Material" };
            inclusionNames       = new string[] { "Float", "Int", "Vector2", "Vector3", "Rect", "Color", "Material" };
            methodNameExclusions = new string[] { "Update", "FixedUpdate", "LateUpdate", "Start", "Awake", "OnEnable", "OnDisable" };
        }