Working with GetComponent<>

Liria Robles
Dec 8, 2020

<Day 6>

Day 6 brought its own challenges, I worked on accessing other objects components using transform. getComponent<>. Basically, I needed to access this method from another script (enemy). So, it took me a while to get things going but I did it. For some reason, a variable that counts down life, jumps from 3 to 1 and then destroys the object, instead of going 3,2,1, destroy. So that’s the next challenge trying to see what is causing that problem. Looking forward to continue learning!

--

--

Liria Robles
0 Followers

Web Developer, living in Hawaii. Aloha!