// Use this for initialization void Start() { ap = new ApiPayment(); ap.SetStatusApi(Paymentwall_Base.API_GOODS); ap.Attach(goodApi); ap.Attach(vcApi); ap.Notify(); }
public void OnChangeDropDown() { if (dropDown.value == 0) { ap.SetStatusApi(Paymentwall_Base.API_GOODS); } else if (dropDown.value == 1) { ap.SetStatusApi(Paymentwall_Base.API_VC); } ap.Notify(); }