public TimeObjSecond(DateTime dt, Transform parent, TimeObj _dictValue) { Transform _t = Transform.Instantiate(MessageMgr.Instance.second, EtcMgr.getPosition(dt), EtcMgr.getRotationSeconds(dt), parent) as Transform; dictValue = _dictValue; dictValue.Second = sGo; dictValue.isSecond = true; sGo = _t.gameObject; sGo.name = "S" + dt.Second; sGo.GetFirstChild().layer = 8; sHolderGo = sGo.GetFirstChild(); sHolderB = sGo.GetComponent <SecondHolderBe>(); sHolderB.setDateTime(dt); }
void Awake() { renderer = GetComponent <Renderer>(); holderBe = transform.parent.GetComponent <SecondHolderBe>(); call = gameObject.AddComponent(typeof(ActionSet)) as ActionSet; }