Exemplo n.º 1
0
    void Awake()
    {
        Init();
        m_myTransform = transform;

        //m_goOKCancelBox = m_myTransform.FindChild("MsgBox").GetComponentsInChildren<OKMsgBox>(true)[0];
        m_goOKCancelBox = m_myTransform.Find("MsgBox").gameObject.AddComponent <OKMsgBox>();

        //m_floatMsg = m_myTransform.FindChild("MsgBoxFloat").GetComponentsInChildren<FloatMsg>(true)[0];
        m_floatMsg = m_myTransform.Find("MsgBoxFloat").gameObject.AddComponent <FloatMsg>();

        m_waveMsg                     = m_myTransform.Find("MsgBoxWave").gameObject;
        m_waveMsgLbl                  = GetUIChild("MsgBoxWaveLbl").GetComponent <UILabel>();
        m_waveMsgTweenPostion         = m_waveMsgLbl.GetComponent <TweenPosition>();
        m_waveMsgTweenPostion.enabled = false;
        m_waveMsg.SetActive(false);


        m_msgBoxCamera = GameObject.Find("MsgCameraForPower");
        //m_msgBoxCamera.SetActive(false);
        InitFloatMsgForPower();
    }
Exemplo n.º 2
0
    void Awake()
    {
        Init();
        m_myTransform = transform;

        //m_goOKCancelBox = m_myTransform.FindChild("MsgBox").GetComponentsInChildren<OKMsgBox>(true)[0];
        m_goOKCancelBox = m_myTransform.FindChild("MsgBox").gameObject.AddComponent<OKMsgBox>();

        //m_floatMsg = m_myTransform.FindChild("MsgBoxFloat").GetComponentsInChildren<FloatMsg>(true)[0];
        m_floatMsg = m_myTransform.FindChild("MsgBoxFloat").gameObject.AddComponent<FloatMsg>();

        m_waveMsg = m_myTransform.FindChild("MsgBoxWave").gameObject;
        m_waveMsgLbl = GetUIChild("MsgBoxWaveLbl").GetComponent<UILabel>();
        m_waveMsgTweenPostion = m_waveMsgLbl.GetComponent<TweenPosition>();
        m_waveMsgTweenPostion.enabled = false;
        m_waveMsg.SetActive(false);


        m_msgBoxCamera = GameObject.Find("MsgCameraForPower");
        //m_msgBoxCamera.SetActive(false);
        InitFloatMsgForPower();

    }