Exemplo n.º 1
0
    // 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();
        }
    }
Exemplo n.º 2
0
    protected void Start()
    {
        Init();
        if (activeEventName.Length > 0)
        {
            NotifyManager.AddListener(activeEventName, this);
        }

        if (inactiveEventName.Length > 0)
        {
            NotifyManager.AddListener(inactiveEventName, this);
        }
    }