Пример #1
0
    public void SpawnCorrect(float amount)
    {
        ToyLineNotificationController newController = Instantiate(prefab.gameObject, transform).GetComponent <ToyLineNotificationController>();

        newController.text   = "+" + amount.ToString("C2");
        newController.isGood = true;
    }
Пример #2
0
    public void SpawnIncorrect(float amount)
    {
        ToyLineNotificationController newController = Instantiate(prefab.gameObject, transform).GetComponent <ToyLineNotificationController>();

        newController.text   = "!!!";
        newController.isGood = false;
    }