Пример #1
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();
    }