// Update is called once per frame void FixedUpdate() { if (points == lvl * ((int)Mathf.Sqrt(lvl) + 1)) { poolc.clear(); reward.GetComponent <Reward> ().newItem(); points = 0; } }
// Update is called once per frame void FixedUpdate() { if (points == lvl * ((int)Mathf.Sqrt(lvl) + 1)) { poolc.clear(); reward.GetComponent <Reward> ().newItem(); points = 0; } }