Exemple #1
0
 void Start()
 {
     tr     = transform;
     anim   = tr.Find("sprite").GetComponent <Animator>();
     height = tr.Find("sprite").GetComponent <AnimHeight>();
     hitbox = tr.Find("hitbox");
 }
Exemple #2
0
 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();
 }