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); }
public void Init(TimeObjSecond _tos) { tos = _tos; }
InflateSecond(DateTime _dt, Transform _parent, TimeObj _dictValue) { //The tos will add itself to the dict TimeObjSecond tos = new TimeObjSecond(_dt, _parent, _dictValue); }