This question was 
             closed Mar 09, 2020 at 11:38 AM by 
             tormentoarmagedoom. 
            
 
             
               Question by 
               astridaskert_unity · Mar 09, 2020 at 11:22 AM · 
                c#unity 5scorescore systemscoreboard  
              
 
              Highscore table C# HELP!!!
I'm new to Unity and need help creating a high score table that will be displayed in the Game Over scene. This is my code:
 public class Meat : MonoBehaviour
 {    
     public int points = 1;
     public float speed;  
     public GameObject effect;   
     private void Update()
     {    
         transform.Translate(Vector2.left * speed * Time.deltaTime);
     }
 
    void OnTriggerEnter2D(Collider2D other)
     {
         if (other.CompareTag("Player")) {    
 
             Instantiate(effect, transform.position, Quaternion.identity);    
             other.GetComponent<Player>().health += points;
             Debug.Log(other.GetComponent<Player>().health);
             Destroy(gameObject);
         }
 
     }
 }
               Comment
              
 
               
              Hello.
There are 1000 tutorials and posts about this topic.
Go look for them.
Psot Closed
Follow this Question
Related Questions
score system failure 2 Answers
Problem with counting score in 3D game 1 Answer
How do I add a score system? 1 Answer
How do I make the Score system work? 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                