void OnTriggerEnter(Collider other) { if (other.tag != "Boundary") { Destroy(gameObject); if (other.tag == "Bolt") { ScoreFactory.GetScore().AddScore(); } } }
void UpdateScore() { scoreText.text = "Score: " + ScoreFactory.GetScore().GetPoints(); }