コード例 #1
0
ファイル: ToyLineNotySpawner.cs プロジェクト: jono-m/GameJams
    public void SpawnCorrect(float amount)
    {
        ToyLineNotificationController newController = Instantiate(prefab.gameObject, transform).GetComponent <ToyLineNotificationController>();

        newController.text   = "+" + amount.ToString("C2");
        newController.isGood = true;
    }
コード例 #2
0
ファイル: ToyLineNotySpawner.cs プロジェクト: jono-m/GameJams
    public void SpawnIncorrect(float amount)
    {
        ToyLineNotificationController newController = Instantiate(prefab.gameObject, transform).GetComponent <ToyLineNotificationController>();

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