Exemplo n.º 1
0
    public void ShowShortcutDialog(int price, Player player, IShortcutField field)
    {
        shortcutInfo.text = shortcutTemplate.text.Replace("{{price}}", price.ToString());

        mainPanel.SetActive(false);
        shortcutDialog.SetActive(true);

        shortcutDialog.GetComponent <ShortcutDialog>().Init(field, player);
        shortcutButtons.SetActive(!player.IsBot());
    }
Exemplo n.º 2
0
    public void Init(IShortcutField field, Player player)
    {
        _shortcutField = field;
        _player        = player;

        if (_player.IsBot())
        {
            _isBot    = true;
            _botTimer = Random.Range(1f, 2.5f);
        }
    }