Exemple #1
0
    public void SwitchAllWhenPopUIShow(bool isShow)
    {
        if (MissionDialogAndLeftTabsLogic.Instance())
        {
            MissionDialogAndLeftTabsLogic.Instance().PlayTween(!isShow);
        }
        if (TargetFrameLogic.Instance())
        {
            TargetFrameLogic.Instance().PlayTween(!isShow);
        }
        if (FunctionButtonLogic.Instance())
        {
            FunctionButtonLogic.Instance().PlayTween(!isShow);
        }

        if (ExpLogic.Instance())
        {
            ExpLogic.Instance().PlayTween(!isShow);
        }
        if (ChatFrameLogic.Instance())
        {
            ChatFrameLogic.Instance().PlayTween(!isShow);
        }
        if (SkillBarLogic.Instance())
        {
            SkillBarLogic.Instance().PlayTween(!isShow);
        }
        if (PlayerHitsLogic.Instance())
        {
            PlayerHitsLogic.Instance().PlayTween(!isShow);
        }

        if (RechargeBarLogic.Instance())
        {
            RechargeBarLogic.Instance().PlayTween(!isShow);
        }

        if (!isShow)
        {
            if (JoyStickLogic.Instance())
            {
                JoyStickLogic.Instance().CloseWindow();
            }
        }
        else
        {
            if (JoyStickLogic.Instance())
            {
                JoyStickLogic.Instance().OpenWindow();
            }
        }
    }
Exemple #2
0
 void OnDestroy()
 {
     m_Instance = null;
 }
Exemple #3
0
    public float AddExpRatio = 0.005f;      // 经验值条每帧增长比例

    void Awake()
    {
        m_Instance = this;
        transform.localPosition = new Vector3(0, -339, 0);
    }