I can’t add script to my game object
But the name of the script is match with the public class
Welcome to the forums!
Does your script have any errors in it? Check the Console window for any messages pointing to specific lines in your script. If it won’t compile, you can’t add it to your objects (nor can you even run your game).