Exemplo n.º 1
0
    public static void notifyCashEarned(int amountEarned)
    {
        cashValueEarned.enabled = true;
        cashValueEarned.text    = "+$" + amountEarned;
        cashEarned.enabled      = true;
        notifyCanvasEarned.GetComponent <CanvasRenderer>().SetAlpha(1.0f);

        PointSystem.AddToScore(amountEarned);

        if (instance)
        {
            instance.Invoke("hideNotification", 1.25f);
        }
        else
        {
            Debug.Log("No instance found");
        }
    }