コード例 #1
0
        public void UpdateQueueElement(ITimer t,GameObject e)
        {
            QueueView q = e.GetComponent<QueueView>();

            IBuilding b = m_BuildingTimers.Where(ax => ax.Value == t).FirstOrDefault().Key;
            IBuildingFunction f = m_Functions.Where(x => x.Value == b).FirstOrDefault().Key;

            q.SetBuildingName(b.Name);
            

            q.SetFunctionName(f.Name);
            float r = (t.Getf() * 100) / f.TimeRequired;
            q.SetProgress(r);
            q.SetProgress("%" + (int)r);

        }