// Start is called before the first frame update protected void Start() { if (activeEventName.Length > 0) { NotifyManager.AddListener(activeEventName, this); } if (inactiveEventName.Length > 0) { NotifyManager.AddListener(inactiveEventName, this); } foreach (var gb in fadeRoots) { var arr = gb.GetComponentsInChildren <Graphic>(); AddToGraphicDict(arr); } AddToGraphicDict(images); AddToGraphicDict(texts); if (!IsOn) { //SetGrphicsDisActive(images); //SetGrphicsDisActive(texts); //SetGrphicsDisActive(rootGraphics); SetGrphicsDisActive(); } }
protected void Start() { Init(); if (activeEventName.Length > 0) { NotifyManager.AddListener(activeEventName, this); } if (inactiveEventName.Length > 0) { NotifyManager.AddListener(inactiveEventName, this); } }