void OnEnable() { m_ChooseObj.SetActive(false); //这里如果没有MainPlayer的话就跳过了,不太对,后续应该修改 Obj_MainPlayer User = Singleton <ObjManager> .Instance.MainPlayer; if (User && User.Controller) { m_IsAutoFight = User.Controller.CombatFlag; m_AutoFightBaiSe.value = User.GetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP1); m_AutoFightYouXiu.value = User.GetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP2); m_AutoFightJingLiang.value = User.GetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP3); // m_AutoFightShiShi.value = User.GetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP4); // m_AutoFightChuanQi.value = User.GetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP5); // m_AutoFightZhengQi.value = User.GetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_STUFF); // m_AutoFightQiTa.value = User.GetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_OTHER); m_AutoFightTeam.value = User.AutoInviteTeamAccept; m_AutoFightReqTeam.value = User.AutoJoinTeamAccept; m_AutoActivity.value = User.AutoActivityAccept; m_AutoFightInfoHpSlider.value = User.AutoHpPercent; m_AutoFightInfoMppSlider.value = User.AutoMpPercent; //m_AutoFightInfoSearchSlider.value = (float)User.AutoRadius / 100; //m_AutoFightDrug.value = User.AutoBuyDrug; initSkillFirst(); _initSkill(); UpdateDrug(); } if (m_IsAutoFight == true) { // m_AutoBeiginName.text = StrDictionary.GetClientDictionaryString("#{1444}"); } else { // m_AutoBeiginName.text = StrDictionary.GetClientDictionaryString("#{1194}"); } // Utils.CleanGrid(SelNormalSkillParent); //清空常规技能列表 // Utils.CleanGrid(SelSpecialSkillParent); //清空变身技能列表 UIManager.LoadItem(UIInfo.AutoSelSkillItem, OnLoadSelSkillItem); // 新手指引 Check_NewPlayerGuide(); RefreshPickUp(); onClickMedicineAndSkill(); updateRemindPoint(); }