You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			545 B
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			24 lines
		
	
	
		
			545 B
		
	
	
	
		
			C#
		
	
using System.Collections;
 | 
						|
using System.Collections.Generic;
 | 
						|
using UnityEngine;
 | 
						|
 | 
						|
namespace RootMotion
 | 
						|
{
 | 
						|
 | 
						|
    public abstract class AnimationModifier : MonoBehaviour
 | 
						|
    {
 | 
						|
        protected Animator animator;
 | 
						|
        protected Baker baker;
 | 
						|
 | 
						|
        public virtual void OnInitiate(Baker baker, Animator animator)
 | 
						|
        {
 | 
						|
            this.baker = baker;
 | 
						|
            this.animator = animator;
 | 
						|
        }
 | 
						|
 | 
						|
        public virtual void OnStartClip(AnimationClip clip) { }
 | 
						|
 | 
						|
        public virtual void OnBakerUpdate(float normalizedTime) { }
 | 
						|
    }
 | 
						|
}
 |