public class GameMap : Monobehaviour { private static GameMap _instance; public static GameMap GetInstance() { return _instance; } void Awake() { _instance = this; } ...