how to show score using panel
i have a score panel but when i finished the level my score doesn't show. i drag my code to game object but still didn't work. here is my code.
using UnityEngine; using System.Collections; using UnityEngine.UI;
public class ScorePoints : MonoBehaviour { public static int Score = 0; public int ScoreValue = 10; Text text; void Awake() { text = GetComponent(); Score = 0; UpdateScore();
 }
 void UpdateScore()
 {
     text.text = "score:" + Score;
 }
 void Start()
 {
 }
 static public void AddPoint()
 {  //Use script to add point
     Score = + 10;
     }
 }
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Unity/C# Respawn and score Problem 1 Answer
I need help with my script please 1 Answer
Grading system not working 1 Answer
Highscore system unity C# 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                