// Update is called once per frame void Update() { if (isPlaying) { count += Time.deltaTime; if (count >= regenTime) { count -= regenTime; PooBomb.GenerateBomb(); } if (PooUIManager.Instance.time > upgradeRegenTime) { upgradeRegenTime += UpgradeRegenSpeed; regenTime *= 0.9f; } } }
// Use this for initialization void Start() { Instance = this; this.transform.position = new Vector3(Random.Range(-Screen.width / 100, Screen.width / 100), 11f, 0f); }