AI improvment

i am wondering is there anyway to tweak variables from other scripts in a separate script ​like i want to tweak a certain variable of my AI script when a condition is met but i want to do it from a separate script​ like if u kill 20 enemies i want to increase the movement speed of my ai by 20 or something.
if u need any further explanation i would be happy to explain.

Absolutely. You can use getters and setters. In Block Breaker, for example, we switch levels when all the blocks are destroyed.

Privacy & Terms