Example #1
0
    public void RefreshAll(float time)
    {
        /*System.Diagnostics.Stopwatch stopwatch = new System.Diagnostics.Stopwatch();
         * stopwatch.Start();*/
        using (var vendorEnum = Vendors.GetEnumerator())
            while (vendorEnum.MoveNext())
            {
                vendorEnum.Current.shop.Refresh(time);
            }
        if (IsUIOpen)
        {
            using (var agentEnum = merchandiseAgents.GetEnumerator())
                while (agentEnum.MoveNext())
                {
                    agentEnum.Current.UpdateInfo();
                }
        }

        /*stopwatch.Stop();
         * Debug.Log(stopwatch.Elapsed.TotalMilliseconds);*/
    }