void Start() { tr = transform; anim = tr.Find("sprite").GetComponent <Animator>(); height = tr.Find("sprite").GetComponent <AnimHeight>(); hitbox = tr.Find("hitbox"); }
void Start() { tr = transform; anim = tr.Find("sprite").GetComponent <Animator>(); height = tr.Find("sprite").GetComponent <AnimHeight>(); hitbox = tr.Find("hitbox"); topOnly = hitbox.GetComponent <TopOnly>(); aud = GetComponent <AudioSource>(); topOnly.Set(false); SetHighness(); }