Пример #1
0
 void UnitContextSetup()
 {
     if (_unitProvider.UnitUrlImgAllAvailable())
     {
         OnBtnLastUnit();
     }
     else// we assume it now exists, or user could not be here
     {
         OnBtnNewUnit();
     }
 }
Пример #2
0
 void TryEnableBtnToUnitScene()
 {
     if (_unitProvider.UnitUrlImgAllAvailable() ||
         _imgProvider.CurrentImgUrlBothExist())
     {
         BtnToUnitScene.interactable = true;
     }
     else
     {
         BtnToUnitScene.interactable = false;
     }
 }