Buncha questions about scripts.
Quick story short. I made an object with boxcol.2d and rigidbody2d, and i decided to make child of gameobject so i can make another boxcol.2d, which will be damagebox of a parent. I have a "walk" script that controls main character(first game object), and a "attackcontrol" script for a child object that controls manipulations with other colliders that inside child boxcol. The problem is: i have a bool variable "Attacking", which tells a child boxcollider when to apply force and speed to boxcolliders inside, but i cant use "Attacking" variable if it's not static. I can understand how to work with that, but can i translate that "Attacking" variable to "attackcontrol" script by another way? Also i tested one thing. I duplicated my hero, and my hero and duplicate copy moves same, obviously. It makes a question: will that affect multiplayer (in teory), if players have same scripts on their heroes? It makes ANOTHER queston, about behavior of, for example, enemies AI. How to make them move separately?