Let's Learn Unity

Опубликовано: 10 Июнь 2026
на канале: NC Learn wit Me
5
1

Hello guys, so today we finished: 289 and part of 290

(Lecture 289) Change Animation State:
Here we need to figure out a way to change the animation states from idle to attacker and then back and forth depending on a certain condition. We are introduced to parameters which can be used to create such conditions. In our case we had a "isAttacker" bool to check whether to attack or be idle. To change this parameter through code we first needed reference to the Animator component. Then we use the SetBool(id, val) to change the value of the parameter. The id will be the name of the parameter that we created which is "isAttacker".

(Lecture 290) One Defender per Square:
I just started this lesson, but the idea is to find a way to make sure that a square in our game area can only contain one defender. We were challenged to figure it out on our own which I've decided to take on. I managed to create a plan on how to do it, so I'm not going to watch his solution yet (until I get really stuck 😅).