scripting walkthough 3&4


data: 26.3.2024

time: 3.5hours

assiment: scripting walkthough 3&4

notes:
Again, pretty straight forward scripting. I am not sure if the Animation scripting is that needed and I would honestly more likely to script something more "usefull".  At the end I realized, that there were bonus scripting parts. When I looked at them, the Singleton and the Debuging part looked bit more "usefull" imo. Although there were nice "features" in the animation part as well, so I am not really that upset :D
Questions, that I got during the srcipting and will be asking tomorrow at the labs (even though I have english labs, I wrote them down in czech, so excuse me for just pasting them here):

  • Jak prakticke je na zacatku skriptu si schovat jako variable nejaky komponent skrz getComponent<T> , abychom funkci getcomponent nemuseli často volat? Je to casta praktika?
  • Jaka je vyhoda UnityEventem nez volanim funkce? Nedela se narocne getComponent volani?
  • Je referencovani pomoci Tagu nejrychlejsi hledani/porovnání objektu?
  • Defaultní hodnoty parametru animatoru se nastavují v Animator window nebo je lepsi je nastavit v Start metode objektu, ve kterem automat je?
  • Is there something similar to animator automatu pro Sounds, nebo pro kazde audio musi byt samostatny audioSource? Pokud samostatny audioSource pro kazde audio, jak se pak rozpoznají, kdyz delam GetComponent<T> ?

Lastly, I am glad I switched to the table computer, if I stayed working on my notebook, would have been a nightmare. 

Files

ScriptingPart3&4.zip 86 MB
Mar 26, 2024

Get Intro to scripting

Leave a comment

Log in with itch.io to leave a comment.