playMaker

Author Topic: No overload matches delegate  (Read 583 times)

Six66

  • Full Member
  • ***
  • Posts: 135
    • View Profile
No overload matches delegate
« on: April 15, 2018, 02:29:55 PM »
Hi, can someone help me fix this error.
No overload for 'OnFailToLoad' matches delegate 'action<int>'

thanks

Code: [Select]

public FsmEvent OnLoadedEvent;
public FsmEvent OnFailedToLoadEvent;

public FsmEvent OnOpenEvent;
public FsmEvent OnCloseEvent;
public FsmEvent OnLeftApplicationEvent;


public override void OnEnter() {

AndroidAdMobController.Instance.OnInterstitialLoaded += OnLoaded;
AndroidAdMobController.Instance.OnInterstitialFailedLoading += OnFailedToLoad;

AndroidAdMobController.Instance.OnInterstitialOpened += OnOpen;
AndroidAdMobController.Instance.OnInterstitialClosed += OnClose;
AndroidAdMobController.Instance.OnInterstitialLeftApplication += OnLeftApplication;

}


private void OnLoaded() {
Fsm.Event(OnLoadedEvent);
}

private void OnFailedToLoad() {
Fsm.Event(OnFailedToLoadEvent);
}


private void OnOpen() {
Fsm.Event(OnOpenEvent);
}

private void OnClose() {
Fsm.Event(OnCloseEvent);
}

private void OnLeftApplication() {
Fsm.Event(OnLeftApplicationEvent);
}


void OnDestroy() {
AndroidAdMobController.Instance.OnInterstitialLoaded -= OnLoaded;
AndroidAdMobController.Instance.OnInterstitialFailedLoading -= OnFailedToLoad;

AndroidAdMobController.Instance.OnInterstitialOpened -= OnOpen;
AndroidAdMobController.Instance.OnInterstitialClosed -= OnClose;
AndroidAdMobController.Instance.OnInterstitialLeftApplication -= OnLeftApplication;
}