Esempio n. 1
0
    private void Start()
    {
        coinsCollected = 0;
        stash          = GameDatas.GetStash();

        FindObjectOfType <CarController>().AddListenerOnTransferFareEvent(AddFarePrice);
    }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        coinCollector = FindObjectOfType <CoinCollector>();
        coinCollector.AddListenerOnCoinCollectedEvent(ChangeCoinText);

        carController = FindObjectOfType <CarController>();
        carController.AddListenerOnPickUpFareEvent(ChangeFareImageColor);
        carController.AddListenerOnTransferFareEvent(ChangeFareImageColor);

        stash = GameDatas.GetStash();
        ChangeCoinText(0);

        SetFareImages();
    }