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; }
void Start() { biuldManager = BiuldManager.instance; wavespawn = WaveSpawne.instance; speed = startSpeed; }