Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 public void Init(TimeObjHour _toh)
 {
     toh = _toh;
     U.Log("AAAAAAAAAAA " + toh.ToString());
 }
Example #4
0
 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);
 }