Ошибка "CS0149 Method name expected" - C#

Узнай цену своей работы

Формулировка задачи:

Помогите, пожалуйста, разобраться. Никак не могу разобраться в чем именно ошибка, указывает на эту строку: Appodeal.show(Appodeal.REWARDED_VIDEO)( (bool success) => {
Листинг программы
  1. buttonUnlock.onClick.AddListener (() => {
  2. buttonUnlock.transform.DOScale(Vector3.zero,0.3f);
  3.  
  4. if (Appodeal.isLoaded(Appodeal.REWARDED_VIDEO))
  5. {
  6. Appodeal.show(Appodeal.REWARDED_VIDEO)( (bool success) => {
  7. if(success)
  8. {
  9. FindObjectOfType<GameManager>().AnimationCameraSuccess();
  10. }
  11. else
  12. {
  13. print("the video is not finished or not displayed");
  14. }
  15. });
  16. }
  17. });
  18. buttonUnlock.transform.localScale = Vector3.zero;

Решение задачи: «Ошибка "CS0149 Method name expected"»

textual
Листинг программы
  1.     /// <summary>
  2.     /// Method called when the player clicked on the right arrow on the roght of the level text on the top of the screen during the game
  3.     /// </summary>
  4.     private void OnClickedButtonNextLevel()
  5.     {
  6.         PlayNextLevel ();
  7.  
  8.     }
  9.  
  10.     /// <summary>
  11.     /// Method called when the player failed and so ... we replay the current level
  12.     /// </summary>
  13.     private void ReplayCurrentLevel(int level)
  14.     {
  15.         Camera.main.transform.DOMove (new Vector3 (0, Camera.main.transform.position.y, -10), 0.3f).OnComplete (() => {
  16.             PlayLevel (level);
  17.         });
  18.  
  19.     }
  20.  
  21.     /// <summary>
  22.     /// Method called when the player have to play the next level (if the current level is cleared, or if the payer taps/Clicks on the next button or if the player see a rewarded video to unlock the current level
  23.     /// </summary>
  24.     private void PlayNextLevel()
  25.     {
  26.         int last = lastLevel;
  27.  
  28.         last++;
  29.  
  30.         Camera.main.transform.DOMove (new Vector3 (50, Camera.main.transform.position.y, -10), 0.3f).OnComplete (() => {
  31.  
  32.             Camera.main.transform.position = new Vector3 (-50, Camera.main.transform.position.y, -10);
  33.  
  34.             Camera.main.orthographicSize = 20f;
  35.  
  36.             SetLevelText (last);
  37.  
  38.             PlayLevel (last);
  39.  
  40.             Camera.main.transform.DOMove (new Vector3 (0, Camera.main.transform.position.y, -10), 0.3f).OnComplete (() => {
  41.             });
  42.         });
  43.     }
  44.     void Start()
  45.     {
  46.         String appKey = "dd241bc31bde3ab2369aa13e6680311d500dfce2c36c64f5";
  47.         Appodeal.initialize(appKey, Appodeal.INTERSTITIAL | Appodeal.NON_SKIPPABLE_VIDEO | Appodeal.BANNER | Appodeal.REWARDED_VIDEO);
  48.     }
  49. }

ИИ поможет Вам:


  • решить любую задачу по программированию
  • объяснить код
  • расставить комментарии в коде
  • и т.д
Попробуйте бесплатно

Оцени полезность:

13   голосов , оценка 4 из 5

Нужна аналогичная работа?

Оформи быстрый заказ и узнай стоимость

Бесплатно
Оформите заказ и авторы начнут откликаться уже через 10 минут
Похожие ответы