using UnityEngine;
public class PlayerController : MonoBehaviour
{
private Animator animator;
void Start()
{
animator = GetComponent();
if (animator == null)
{
animator = GetComponentInChildren();
}
}
}