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(); } } }
void OnDestroy() { m_Instance = null; }
public float AddExpRatio = 0.005f; // 经验值条每帧增长比例 void Awake() { m_Instance = this; transform.localPosition = new Vector3(0, -339, 0); }