void Start()
 {
     m_Animator           = GetComponent <Animator> ();
     m_AnimatorKinematics = new AnimatorKinematics(m_Animator);
     //m_FootPlanting = new FootPlanting (m_Animator, m_BackFootOffset, m_FrontFootOffset, ~m_Animator.gameObject.layer);
     OnLeftFootPlantAction  += OnLeftFootPlant;
     OnRightFootPlantAction += OnRightFootPlant;
 }
Beispiel #2
0
 public FootPlanting(FootStepSoundsAndFx _props, Animator _animator)
 {
     footStepProps           = _props;
     surfaces                = _props.surfaces;
     m_AnimatorKinematics    = new AnimatorKinematics(_animator);
     m_Animator              = _animator;
     OnLeftFootPlantAction  += OnLeftFootPlant;
     OnRightFootPlantAction += OnRightFootPlant;
     decalScript             = GameObject.FindGameObjectWithTag("EnvFx").GetComponent <Decals>();
 }