void Awake() { if (instace == null) { instace = this; } }
void Start() { if (instance == null) { instance = this; } bordManager = BordManager.instace; gameManager = GameManager.instance; //Debug.Log ("Chadnan"); }
void Awake() { if (instance == null) instance = this; else if (instance != this) Destroy (gameObject); DontDestroyOnLoad (gameObject); enemies = new List<Enemy> (); bordScript = GetComponent<BordManager> (); InitGame (); }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); enemies = new List <Enemy> (); bordScript = GetComponent <BordManager> (); InitGame(); }