Exemplo n.º 1
0
 void Awake()
 {
     if (score == null)
     {
         DontDestroyOnLoad(gameObject);
         score = this;
     }
     if (score != this)
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     overallCounter   = GameObject.FindGameObjectWithTag("PvPCounter").GetComponent <PvPScore>();
     hasBeenDisplayed = false;
 }