private void Awake() { instance = this; notificationTextMenuTextMesh = notificationTextMenu.GetComponent <TextMeshProUGUI>(); notificationTextMenuAnimator = notificationTextMenu.GetComponent <Animator>(); actualClueController = AnimatedClueController.Instance(); }
public static AnimatedClueController Instance() { if (!animatedClueController) { animatedClueController = FindObjectOfType(typeof(AnimatedClueController)) as AnimatedClueController; if (!animatedClueController) { Debug.LogError("There needs to be one active ObjectiveManager script on a GameObject in your scene."); } } return(animatedClueController); }
private void Awake() { instance = this; }