P
P
Pragma Games2021-07-07 09:25:11
Unity
Pragma Games, 2021-07-07 09:25:11

Should the animator be separated from the rest of the character logic?

Perhaps the question drove you a little into a dead end, several times I saw how two scripts 1. PlayerController and 2. AnimatorPlayerController weigh on an object (let's say gg). In the first script, there are events that are processed in the second script and signal when to change animations. How much does this approach reduce the coherence of the code, and is it worth doing this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AnanasikDev, 2021-07-08
@PragmaGames

This increases readability, because if you need to correct the logic of character movement, you go to one script, if animations, then to another, if the health system, then to the third, and so on. This does not affect the speed of execution (and if it does, it is extremely insignificant), but it is easier for developers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question