Exemplo n.º 1
0
 public void Show(Entity item, Entity method, Action onBack, Action onForward)
 {
     this.phone.text = string.Empty;
     this.phone.Select();
     MainScreenComponent.Instance.OverrideOnBack(new Action(this.Cancel));
     this.onBack = onBack;
     this.onForward = onForward;
     base.gameObject.SetActive(true);
     this.info.text = ShopDialogs.FormatItem(item, method);
 }
Exemplo n.º 2
0
 public void Show(Entity item, Action onBack, Action onForward)
 {
     MainScreenComponent.Instance.OverrideOnBack(new Action(this.Cancel));
     this.onBack    = onBack;
     this.onForward = onForward;
     base.gameObject.SetActive(true);
     this.info.text    = ShopDialogs.FormatItem(item, null);
     this.warning.text = string.Empty;
     Entity[] entities = new Entity[] { SelfUserComponent.SelfUser, item };
     ECSBehaviour.EngineService.Engine.NewEvent <CalculateCompensationRequestEvent>().AttachAll(entities).Schedule();
 }
Exemplo n.º 3
0
 public void Show(Entity item, Entity method, Action onHide)
 {
     this.onHide = onHide;
     base.gameObject.SetActive(true);
     this.info.text = ShopDialogs.FormatItem(item, method);
 }