public void InitScreen(XsollaUtils utils, XsollaForm form)
{
XsollaTranslations translations = utils.GetTranslations();
Resizer.ResizeToParrent(gameObject);
bool isPurchaseNull = utils.GetPurchase() == null;
if (isPurchaseNull || !utils.GetPurchase().IsPurchase() || !utils.GetPurchase().IsPaymentSystem())
{
if (!isPurchaseNull)
{
isPrevStepPaymentList = !utils.GetPurchase().IsPaymentSystem();
}
paymentForm.OnClickBack += () => {
Back();
};
}
paymentForm.InitView(translations, form);
if (form.GetSummary() != null)
{
tower.InitView(translations, form.GetSummary());
}
else
{
tower.gameObject.SetActive(false);
}
}