Exemple #1
0
        InflateSeconds(DateTime _dt, Transform _parent, TimeObj _dictValue)
        {
            seconds = new Dictionary <int, TimeObjSecond>(); //todo rid of this


            for (int i = 0; i < 60; ++i)
            {
                DateTime      ndt = _dt.AddSeconds(i);
                TimeObjSecond tos = new TimeObjSecond(ndt.Neuter(), mGo.transform, dictValue);
                tos.sGo.SetActive(true);
                seconds.Add(i, tos);
            }

            //speak to the new 60 seconds
            mGo.BroadcastMessage("ShowMe", this);
        }
Exemple #2
0
 public void Init(TimeObjSecond _tos)
 {
     tos = _tos;
 }
Exemple #3
0
 InflateSecond(DateTime _dt, Transform _parent, TimeObj _dictValue)
 {
     //The tos will add itself to the dict
     TimeObjSecond tos = new TimeObjSecond(_dt, _parent, _dictValue);
 }