void Awake() { // Setting up references. //groundCheck = transform.Find("groundCheck"); anim = GetComponent <Animator>(); playerHealth = GetComponent <DodoHealth>(); }
// Use this for initialization void Start() { health = GameObject.FindGameObjectWithTag("DodoHealth").GetComponent <DodoHealth>(); }