Beispiel #1
0
    public void ClickLeft()
    {
        float move = scrollRect.horizontalNormalizedPosition;

        if (move > 0)
        {
            audioOut.PlayOneShot(acClickOn, 0.8f);
            scrollRect.inertia = true;

            scrollRect.velocity = new Vector2(-0.3f, 0);

            //charCost.text = "";
        }

        Button btn = buyButton.GetComponentInParent <Button>();

        btn.enabled = false;
        buyButton.SetWiggle(false);
        buyButton.SetCharIndex(0, null);

        //menuButton.ClearCharFields();
    }