So I want to create a custom public class, such as:
public class Info {
public string Name;
}
but I need to know how to use this class on another script, so that I can share the info in a simple manner.
public Info MyInfo = new Info();
MyInfo.Name="Adam";
BattleOrganizer BattleScript = Camera.main.GetComponent<BattleOrganizer>();
BattleScript.AddPlayer(MyInfo);
Can anyone help me with this? If you need more info let me know.