protected void OnDestroy() { if (GetComponent<Text>() == instance) { instance = null; } }
protected void Start() { if (instance != null) { Debug.LogError("ScoreViewer instance != null"); } else { instance = this; label = GetComponent<Text>(); ResetScoreLocal(); } }