Is it possible to send information between to different scripts?
Hello! I've been away from Unity and programming for a while but I have chosen to come back. Right now I'm trying to make a copy of the game "2048". As you might know squares with different values cant overlap each other. This is the problem. To know what positions are taken I want every square to send its position to the gamemanager so the gamemanager can have all the information on what positions that are taken or not taken. To do this I have to send values through "gamemanager.NameOfVoid()". Is this even possible and if so please answer. And then I have another problem. When the gamemanager has handled all the information of the positions I want it to send back all the information to the different squares but i can't find a way to do this. I would appreciate any answer.