Exemplo n.º 1
0
    //Buy Hero by Silver
    //drag silver to target for summon Hero
    public void OnDragSilver()
    {
        if (_locked)
        {
            return;
        }
        if (_priceType != PriceType.Silver)
        {
            UICursorManager.Set(_silverPriceName);
            _priceType = PriceType.Silver;

            iTween.Stop(uiTutorial.hand);
            uiTutorial.hand.SetActive(false);
        }
    }
Exemplo n.º 2
0
    //Buy Hero by Gold
    //drag gold to target for summon Hero
    public void OnDragGold()
    {
        if (_locked)
        {
            return;
        }
        if (_priceType != PriceType.Gold)
        {
            UICursorManager.Set(_goldPriceName);
            _priceType = PriceType.Gold;

            iTween.Stop(uiTutorial.hand);
            uiTutorial.hand.SetActive(false);
        }
    }
 public static void OnDragRelease()
 {
     UICursorManager.Set(null);
 }