Ошибка "CS0149 Method name expected" - C#
Формулировка задачи:
Помогите, пожалуйста, разобраться. Никак не могу разобраться в чем именно ошибка, указывает на эту строку:
Appodeal.show(Appodeal.REWARDED_VIDEO)( (bool success) => {
Листинг программы
- buttonUnlock.onClick.AddListener (() => {
- buttonUnlock.transform.DOScale(Vector3.zero,0.3f);
- if (Appodeal.isLoaded(Appodeal.REWARDED_VIDEO))
- {
- Appodeal.show(Appodeal.REWARDED_VIDEO)( (bool success) => {
- if(success)
- {
- FindObjectOfType<GameManager>().AnimationCameraSuccess();
- }
- else
- {
- print("the video is not finished or not displayed");
- }
- });
- }
- });
- buttonUnlock.transform.localScale = Vector3.zero;
Решение задачи: «Ошибка "CS0149 Method name expected"»
textual
Листинг программы
- /// <summary>
- /// 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
- /// </summary>
- private void OnClickedButtonNextLevel()
- {
- PlayNextLevel ();
- }
- /// <summary>
- /// Method called when the player failed and so ... we replay the current level
- /// </summary>
- private void ReplayCurrentLevel(int level)
- {
- Camera.main.transform.DOMove (new Vector3 (0, Camera.main.transform.position.y, -10), 0.3f).OnComplete (() => {
- PlayLevel (level);
- });
- }
- /// <summary>
- /// 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
- /// </summary>
- private void PlayNextLevel()
- {
- int last = lastLevel;
- last++;
- Camera.main.transform.DOMove (new Vector3 (50, Camera.main.transform.position.y, -10), 0.3f).OnComplete (() => {
- Camera.main.transform.position = new Vector3 (-50, Camera.main.transform.position.y, -10);
- Camera.main.orthographicSize = 20f;
- SetLevelText (last);
- PlayLevel (last);
- Camera.main.transform.DOMove (new Vector3 (0, Camera.main.transform.position.y, -10), 0.3f).OnComplete (() => {
- });
- });
- }
- void Start()
- {
- String appKey = "dd241bc31bde3ab2369aa13e6680311d500dfce2c36c64f5";
- Appodeal.initialize(appKey, Appodeal.INTERSTITIAL | Appodeal.NON_SKIPPABLE_VIDEO | Appodeal.BANNER | Appodeal.REWARDED_VIDEO);
- }
- }
ИИ поможет Вам:
- решить любую задачу по программированию
- объяснить код
- расставить комментарии в коде
- и т.д