//Awake is always called before any Start functions void Awake() { if (Instance == null) Instance = this; else if (Instance != this) Destroy(gameObject); DontDestroyOnLoad(gameObject); _enemies = new List<Enemy>(); _boardScript = GetComponent<BoardManager>(); InitGame(); }
void Awake() { BoardScript = GetComponent<BoardManager>(); InitGame(); }