Пример #1
0
    private void DestroyFlower()
    {
        scoreUI.IncreaseScore(pointValue);
        Destroy(gameObject);
        GameObject flowerVFX = Instantiate(flowerHitVFX, transform.position, Quaternion.Euler(-179, 89, -90));

        Destroy(flowerVFX, flowerDuration);
    }
Пример #2
0
 /// <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");
     }
 }
Пример #3
0
    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);
    }
Пример #4
0
 public void Increase(int pointValue)
 {
     scoreUI.IncreaseScore(pointValue);
 }
Пример #5
0
 public void IncreaseScore(int points)
 {
     _scoreUI.IncreaseScore(points);
 }