コード例 #1
0
 Transform MakeMyMinute()
 {
     if (tof.minuteParent == null)
     {
         MakeMyHour();
     }
     tom              = new TimeObjMinute(m_Date, tof.minuteParent, this, false);
     isMinute         = true;
     tof.secondParent = tom.mGo.transform;
     return(tom.mGo.transform);
 }
コード例 #2
0
ファイル: TimeObjHour.cs プロジェクト: basilbeltran/time
        InflateMinutes(DateTime _dt, Transform _parent, TimeObj _dictValue, bool cascade)
        {
            minutes = new Dictionary <int, TimeObjMinute>(); //todo rid of this


            for (int i = 0; i < 60; ++i)
            {
                DateTime      ndt = _dt.AddMinutes(i);
                TimeObjMinute tom = new TimeObjMinute(ndt.Neuter(), hGo.transform, dictValue, cascade);
                tom.mGo.SetActive(true);
                minutes.Add(i, tom);
            }

            //speak to the new 60 minutes
            hGo.BroadcastMessage("ShowMe", this);
        }
コード例 #3
0
ファイル: MinuteHolderBe.cs プロジェクト: basilbeltran/time
 public void Init(TimeObjMinute _tom)
 {
     tom = _tom;
     U.Log("AAAAAAAAAAA " + tom.ToString());
 }
コード例 #4
0
ファイル: TimeObjHour.cs プロジェクト: basilbeltran/time
 InflateMinute(DateTime _dt, Transform _parent, TimeObj _dictValue)
 {
     //The tom should add itself to the dict, MakeTime will have to stop doing that
     TimeObjMinute tom = new TimeObjMinute(_dt, _parent, _dictValue, false);
 }