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