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