void Start() { wavespawn = WaveSpawne.instance; enemy = GetComponent <Enemy> (); target = WayPointsSc.points[0]; healthUi = HealthUi.instance; }
void Awake() { if (instance != null) { //Debug.Log ("More Thane 1 instance"); return; } instance = this; }
private void BindInstance() { if (_instance == null) { _instance = this; } else { Destroy(gameObject); } }