コード例 #1
0
    public static void notifyCashLost(int amountLost)
    {
        cashValueLost.enabled = true;
        cashValueLost.text    = "-$" + amountLost;
        cashLost.enabled      = true;
        notifyCanvasLost.GetComponent <CanvasRenderer>().SetAlpha(1.0f);

        PointSystem.SubtractFromScore(amountLost);

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