Exemplo n.º 1
0
        public static void Wrap(AnimatedParameter animParam, Environment env)
        {
            var wrapper = new ExpressionParameterWrapper(animParam);

            env.AddVariable("parameter", wrapper, wrapper.GetType());
            env.AddVariable(animParam.parameterName, wrapper, wrapper.GetType());
            // env.AddVariable(  new BoundVariable("value", animParam.ResolvedObject(), animParam.GetMemberInfo())  );
        }
Exemplo n.º 2
0
        public static void Wrap(ActionClip clip, Environment env)
        {
            var wrapper = new ExpressionActionClipWrapper(clip);

            env.AddVariable("clip", wrapper, wrapper.GetType());

            foreach (var animParam in clip.animationData.animatedParameters)
            {
                env.AddVariable(new BoundVariable(animParam.parameterName.SplitCamelCase().Replace(" ", ""), animParam.ResolvedObject(), animParam.GetMemberInfo()));
            }
        }
Exemplo n.º 3
0
        public static void Wrap(Cutscene cutscene, Environment env)
        {
            var wrapper = new ExpressionCutsceneWrapper(cutscene);

            env.AddVariable("cutscene", wrapper, wrapper.GetType());
        }