Пример #1
0
    void OnTriggerEnter(Collider other)
    {
        if (other.tag != "Boundary")
        {
            Destroy(gameObject);

            if (other.tag == "Bolt")
            {
                ScoreFactory.GetScore().AddScore();
            }
        }
    }
Пример #2
0
 void UpdateScore()
 {
     scoreText.text = "Score: " + ScoreFactory.GetScore().GetPoints();
 }