Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | }
|
| | | }
|
| | |
|
| | | AssetBundleBuildExtersion.Build(m_UserData.m_OutputPath, _category, opt, (BuildTarget)m_UserData.m_BuildTarget);
|
| | | var outputPath = Application.dataPath.Replace("Assets", m_UserData.m_OutputPath);
|
| | | AssetBundleBuildExtersion.Build(outputPath, _category, opt, (BuildTarget)m_UserData.m_BuildTarget);
|
| | | }
|
| | |
|
| | | private void ExcuteBuildAudio()
|
| | |
| | | {
|
| | | if (_task.assetPath == AssetPath.ResourceOut)
|
| | | {
|
| | | var fileInfo = new FileInfo(_task.filePath);
|
| | | var fs = fileInfo.OpenRead();
|
| | | sr = new StreamReader(fs, Encoding.UTF8);
|
| | | var content = sr.ReadToEnd();
|
| | | lines = content.Split(lineStep, StringSplitOptions.None);
|
| | | lines = File.ReadAllLines(_task.filePath,Encoding.UTF8);
|
| | | }
|
| | | else if (_task.assetPath == AssetPath.External)
|
| | | {
|
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3c817ad288f3e2a4e92d436c3d75938e |
| | | guid: a53e1a4c69fcb264eac797b394e065da |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | else if (target is GA_NpcFightNorm)
|
| | | {
|
| | | _casterRealm = PlayerDatas.Instance.baseData.realmLevel;
|
| | | _targetRealm = (int)target.ActorInfo.realm;
|
| | | _targetRealm = (int)target.ActorInfo.realm == 0 ? 99999999 : (int)target.ActorInfo.realm;
|
| | | }
|
| | | }
|
| | | else if (target is GA_Hero)
|
| | |
| | | public event Action SelectEquipClassEvent;
|
| | |
|
| | | bool serverInited = false;
|
| | |
|
| | | public const int TRIALEXCHANGE_GUIDE = 91;
|
| | | public override void Init()
|
| | | {
|
| | | ParseConfig();
|
| | |
| | | {
|
| | | model.SelectEquipClassEvent -= SelectEquipClassEvent;
|
| | | packModel.RefreshItemCountAct -= RefreshItemCountAct;
|
| | |
|
| | | if (!NewBieCenter.Instance.completeGuidesBuf.Contains(TrialDungeonModel.TRIALEXCHANGE_GUIDE))
|
| | | {
|
| | | NewBieCenter.Instance.RemoveNewBieGuide(TrialDungeonModel.TRIALEXCHANGE_GUIDE);
|
| | | }
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | |
| | |
|
| | | private void GuideBeginEvent()
|
| | | {
|
| | | if (NewBieCenter.Instance.inGuiding && NewBieCenter.Instance.currentGuide == 89)
|
| | | if (NewBieCenter.Instance.inGuiding
|
| | | && (NewBieCenter.Instance.currentGuide == 89
|
| | | || NewBieCenter.Instance.currentGuide == TrialDungeonModel.TRIALEXCHANGE_GUIDE))
|
| | | {
|
| | | UnFlodFunctionArea(true, 0);
|
| | | }
|
| | |
| | | {
|
| | | ModelCenter.Instance.GetModel<DailyQuestModel>().currentDailyQuest = (int)DailyQuestType.FairyLand;
|
| | | }
|
| | | if (NewBieCenter.Instance.inGuiding && NewBieCenter.Instance.currentGuide == TrialDungeonModel.TRIALEXCHANGE_GUIDE)
|
| | | {
|
| | | ModelCenter.Instance.GetModel<DailyQuestModel>().currentDailyQuest = (int)DailyQuestType.Trial;
|
| | | }
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<DailyQuestWin>();
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void RemoveNewBieGuide(int _id)
|
| | | {
|
| | | if (!completeGuidesBuf.Contains(_id))
|
| | | {
|
| | | completeGuidesBuf.Add(_id);
|
| | | }
|
| | |
|
| | | var send = new CA222_tagCMSetGuideOK();
|
| | | send.GuideIndex = (byte)_id;
|
| | | send.IsOK = 1;
|
| | | GameNetSystem.Instance.SendInfo(send);
|
| | | }
|
| | |
|
| | | public void FinishCurrentGuideWithoutCloseWin()
|
| | | {
|
| | | var guideRecord = currentGuide;
|
| | |
| | | return state == DailyQuestModel.DailyQuestState.CanBuyTimes;
|
| | | case GuideTriggerType.TeamAutoAccept:
|
| | | return !teamModel.myTeam.inTeam;
|
| | | case GuideTriggerType.TrialExchange:
|
| | | var trialDailyState = dailyModel.GetQuestState((int)DailyQuestType.Trial);
|
| | | return trialDailyState == DailyQuestModel.DailyQuestState.Completed;
|
| | | default:
|
| | | return false;
|
| | | }
|
| | |
| | | model.humanTreasureStateChangeEvent -= OnHumanTreasureStateChange;
|
| | | model.potentialLevelChangeEvent -= OnPotentialLevelChange;
|
| | |
|
| | | RedpointCenter.Instance.redpointValueChangeEvent += OnRedpointUpdate;
|
| | | RedpointCenter.Instance.redpointValueChangeEvent -= OnRedpointUpdate;
|
| | | }
|
| | |
|
| | | private void OnHumanTreasureStateChange(int _treasureId)
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | treasure.skillLevelUpRedpoint.state = RedPointState.None;
|
| | | if (treasure.state != TreasureState.Collected || !treasure.IsMaxStage())
|
| | | {
|
| | | return;
|
| | | }
|
| | | var anyPointialLevelupAble = false;
|
| | | for (int i = 0; i < treasure.potentials.Count; i++)
|
| | | if (treasure.state == TreasureState.Collected && treasure.IsMaxStage())
|
| | | {
|
| | | var potential = treasure.potentials[i];
|
| | | if (SatisyPotentialLevelUp(treasure.id, potential.id))
|
| | | for (int i = 0; i < treasure.potentials.Count; i++)
|
| | | {
|
| | | anyPointialLevelupAble = true;
|
| | | break;
|
| | | var potential = treasure.potentials[i];
|
| | | if (SatisyPotentialLevelUp(treasure.id, potential.id))
|
| | | {
|
| | | anyPointialLevelupAble = true;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | treasure.skillLevelUpRedpoint.state = anyPointialLevelupAble ? RedPointState.Simple : RedPointState.None;
|
| | |
| | | Pray = 18,//祈愿
|
| | | VIPExperience = 19,//vip体验
|
| | | FairyLandBuyTimes = 20,//仙界秘境购买次数
|
| | | TeamAutoAccept=21,//自动接受组队邀请
|
| | | TeamAutoAccept = 21,//自动接受组队邀请
|
| | | TrialExchange = 22,//宗门试炼兑换材料
|
| | |
|
| | | QuestCanAccept = 100,//任务可接
|
| | | QuestCanDo = 101,//任务可进行
|