private IEnumerator WaitForProvider() { while (Provider == null) { yield return(WaitFor.EndOfFrame); } spellBook = Provider.GetComponent <BookOfSpells>(); UpdatePoints(); GenerateCategories(); }