private void ResetAnimationEngine()
        {
            string className = "AnimEngine_" + animationEngine.ToString();

            if (animEngine == null || animEngine.ToString() != className)
            {
                animEngine = (AnimEngine)ScriptableObject.CreateInstance(className);
            }
        }
Esempio n. 2
0
        private void ResetAnimationEngine()
        {
            string className = "";

            if (animationEngine == AnimationEngine.Custom)
            {
                className = customClassName;
            }
            else
            {
                className = "AnimEngine_" + animationEngine.ToString();
            }

            if (!string.IsNullOrEmpty(className) && (animEngine == null || animEngine.ToString() != className))
            {
                animEngine = (AnimEngine)ScriptableObject.CreateInstance(className);
            }
        }
Esempio n. 3
0
        protected void ResetAnimationEngine(AnimationEngine animationEngine, string customClassName)
        {
            string className = "";

            if (animationEngine == AnimationEngine.Custom)
            {
                className = customClassName;
            }
            else
            {
                className = "AnimEngine_" + animationEngine.ToString();
            }

            if (className != "" && (editingAnimEngine == null || editingAnimEngine.ToString() != className))
            {
                editingAnimEngine = (AnimEngine)ScriptableObject.CreateInstance(className);
            }
        }
Esempio n. 4
0
        private void ResetAnimationEngine()
        {
            string className = "AnimEngine_" + animationEngine.ToString ();

            if (animEngine == null || animEngine.ToString () != className)
            {
                animEngine = (AnimEngine) ScriptableObject.CreateInstance (className);
            }
        }
Esempio n. 5
0
        public void ResetAnimationEngine()
        {
            string className = "AnimEngine";

            if (animationEngine == AnimationEngine.Custom)
            {
                if (customAnimationClass.Length > 0)
                {
                    className = customAnimationClass;
                }
            }
            else
            {
                className += "_" + animationEngine.ToString ();
            }

            if (animEngine == null || animEngine.ToString () != className)
            {
                try
                {
                    animEngine = (AnimEngine) ScriptableObject.CreateInstance (className);
                    if (animEngine != null)
                    {
                        animEngine.Declare (this);
                    }
                } catch {}
            }
        }