private void Awake() { characterProviderApi = ApiProvider.ProvideCharacterProviderApi(); onCharacterReceivedListener = GetComponent <IOnCharacterReceivedListener>(); onCharacterValidationFinishedListener = GetComponent <IOnCharacterValidationFinishedListener>(); onCharacterCreationFinishedListener = GetComponent <IOnCharacterCreationFinishedListener>(); onCharacterDeletionFinishedListener = GetComponent <IOnCharacterDeletionFinishedListener>(); if (characterProviderApi != null) { characterProviderApi.CreateCharacterCallback += OnCreateCharacterCallback; characterProviderApi.DeleteCharacterCallback += OnDeleteCharacterCallback; characterProviderApi.GetCharactersCallback += OnGetCharactersCallback; } }