Exemplo n.º 1
0
    public void WantedPosterOn()
    {
        if (CurrencyManager.GetComponent <FreemiumCurrency>().coin >= 10)
        {
            if (wantedPoster == null)
            {
                wantedPoster = Instantiate(Resources.Load("Prefabs/WantedPoster")) as GameObject;
                CurrencyManager.GetComponent <FreemiumCurrency>().BasicPosterCost();
            }
        }

        //start coroutine for how long the poster runs and will stay up.
        StartCoroutine(PosterDecay(5f));
    }