Transform MakeMyHour() { if (tof.hourParent == null) { MakeMyDay(); } toh = new TimeObjHour(m_Date, tof.hourParent, this, false); isHour = true; tof.minuteParent = toh.hGo.transform; return(toh.hGo.transform); }
InflateHours(DateTime _dt, Transform _parent, TimeObj _dictValue, bool cascade) { hours = new Dictionary <int, TimeObjHour>(); //todo rid of this //hours = new Dictionary<DateTime, TimeObjHour>(); //todo rid of this for (int i = 0; i < 24; ++i) { DateTime ndt = DateTime.Today.AddHours(i); TimeObjHour toh = new TimeObjHour(ndt.Neuter(), dGo.transform, dictValue, cascade); toh.hGo.SetActive(true); //hours.Add(ndt, toh); hours.Add(i, toh); } //speak to the new 24 hours dGo.BroadcastMessage("ShowMe", this); }
public void Init(TimeObjHour _toh) { toh = _toh; U.Log("AAAAAAAAAAA " + toh.ToString()); }
InflateHour(DateTime _dt, Transform _parent, TimeObj _dictValue) { //The toh should add itself to the dict, MakeTime will have to stop doing that TimeObjHour toh = new TimeObjHour(_dt, _parent, _dictValue, false); }