示例#1
0
 public static AnimationVisualFeedback alloc(ref AnimationVisualFeedbackData p_animationVisualFeedbackData, IAnimatorPlayable p_animatorPlayable)
 {
     AnimationVisualFeedback l_instance = new AnimationVisualFeedback();
     l_instance.AnimationVisualFeedbackData = p_animationVisualFeedbackData;
     l_instance.AnimatorPlayable = p_animatorPlayable;
     return l_instance;
 }
示例#2
0
        public override void Initialize(Entity p_entity, RuntimeObjectRootComponent p_runtimeObjectRootComponent)
        {
            AnimatorPlayableComponent l_animatorPlayableComponent
                = p_runtimeObjectRootComponent.m_InstanciatedRuntimeObject.RuntimeObjectRootComponent.gameObject.GetComponentInChildren <AnimatorPlayableComponent>();

            if (l_animatorPlayableComponent != null)
            {
                EntityComponent.add_component <AnimationVisualFeedback>(p_entity, AnimationVisualFeedback.alloc(ref AnimationVisualFeedbackData, l_animatorPlayableComponent.AnimatorPlayable));
            }
        }