void Start() { alreadySpawned = false; rushToTarget = boss.GetComponent <RushToTarget>(); CounterOfKill = GameObject.FindGameObjectWithTag("CounterKill").GetComponent <Text>(); }
void Start() { _rushToTarget = enemy.GetComponent <RushToTarget>(); lastSpawnDate = Time.time; CounterOfKill = GameObject.FindGameObjectWithTag("CounterKill").GetComponent <Text>(); }