public static InGameUIWords Instance() { if (!inGameUIWords) { inGameUIWords = FindObjectOfType(typeof(InGameUIWords)) as InGameUIWords; if (!inGameUIWords) { Debug.LogError("There needs to be one active ObjectiveManager script on a GameObject in your scene."); } } return(inGameUIWords); }
private void Awake() { instance = this; }