Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        UIResourceManager UIResMan = UIResourceManager.GetInstance();

        shipMan = GetComponent <ShipManager>();

        resPool.AddResource(0, 100); //TODO: Get these from setup

        UIResMan.SetGasText(100);
        UIResMan.SetFoodText(100);
        UIResMan.SetMetalText(100);

        currentTime = Time.time;
        StartCoroutine(ResourceTick());
    }