Exemple #1
0
 void Start()
 {
     me     = GetComponent <DayHolderBe>();
     shape  = transform.GetChild(0).gameObject;
     formBe = shape.GetComponent <DayFormBe>();
     //if (dump) gameObject.Dump();
 }
Exemple #2
0
        // Dictionary<DateTime, TimeObjHour> hours;



        public TimeObjDay(DateTime _dt, Transform parent, TimeObj _dictValue, bool cascade)
        {
            Transform _t = Transform.Instantiate(MessageMgr.Instance.day,
                                                 EtcMgr.getPosition(_dt),
                                                 EtcMgr.getRotationDay(_dt),
                                                 MessageMgr.Instance.gameRoot) as Transform;

            this.dt        = _dt;
            this.dictValue = _dictValue;
            dGo            = _t.gameObject;
            dictValue.Day  = dGo;
            dGo.SetActive(true);
            dictValue.isDay = true;
            dGo.name        = "D" + dt.Day;
            dHolderGo       = dGo.GetFirstChild();
            dHolderGo.layer = 11;
            dHolderB        = dGo.GetComponent <DayHolderBe>();
            dHolderB.setDateTime(_dt);
            dHolderB.Register(dictValue);

            if (cascade)
            {
                InflateMyHours(true);
            }
        }