Ejemplo n.º 1
0
 //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();
 }
Ejemplo n.º 2
0
 void Awake()
 {
     BoardScript = GetComponent<BoardManager>();
     InitGame();
 }