private void DestroyFlower() { scoreUI.IncreaseScore(pointValue); Destroy(gameObject); GameObject flowerVFX = Instantiate(flowerHitVFX, transform.position, Quaternion.Euler(-179, 89, -90)); Destroy(flowerVFX, flowerDuration); }
/// <summary> /// Update this instance. /// </summary> void Update() { // If the radius or point count has changed, update the circle if (NumPoints != EdgeCollider.pointCount || CurrentRadius != Radius) { CreateCircle(); scoreUI.IncreaseScore(pointValue); Debug.Log("Increase Score"); } }
private void DestroyRose() { if (playerHealth.GetHealth() < 3) { heartsUI.IncreaseHealth(); } scoreUI.IncreaseScore(pointValue); Destroy(gameObject); GameObject flowerVFX = Instantiate(roseHitVFX, transform.position, Quaternion.Euler(-179, 89, -90)); Destroy(flowerVFX, roseDuration); }
public void Increase(int pointValue) { scoreUI.IncreaseScore(pointValue); }
public void IncreaseScore(int points) { _scoreUI.IncreaseScore(points); }