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);
            }
        }