//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Wednesday, April 11, 2018
|
//--------------------------------------------------------
|
using UnityEngine;
|
using System.Collections;
|
using UnityEngine.UI;
|
|
namespace vnxbqy.UI
|
{
|
|
public partial class AchievementGoto
|
{
|
static PackModel playerPack { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
|
public static void Goto3051(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
}
|
|
public static void Goto3066(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
}
|
|
public static void Goto3069(int _achievementId,SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
ComposeWinModel winModel = ModelCenter.Instance.GetModel<ComposeWinModel>();
|
string[] conditions = config.Condition2.Split('|');
|
ComposeFuncType funcType = ComposeFuncType.Wings;
|
switch ((JumpUIType)config.Jump)
|
{
|
case JumpUIType.ComposeFunc1:
|
funcType = ComposeFuncType.Wings;
|
break;
|
case JumpUIType.ComposeFunc2:
|
funcType = ComposeFuncType.Ticket;
|
break;
|
case JumpUIType.ComposeFunc4:
|
funcType = ComposeFuncType.Equip;
|
break;
|
case JumpUIType.ComposeFunc5:
|
funcType = ComposeFuncType.Item;
|
break;
|
}
|
winModel.SetJumpToModel(funcType,int.Parse(conditions[0]), int.Parse(conditions[1]));
|
}
|
|
public static void Goto3092(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
guideAchievementId = _achievementId;
|
}
|
|
public static void Goto3094(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
JumpUIType jump = (JumpUIType)config.Jump;
|
if (jump == JumpUIType.KnapSackFunc1)
|
{
|
int itemId = config.Condition[0];
|
string guid = playerPack.GetItemGUIDByID(itemId);
|
playerPack.SetLookIndex(guid);
|
}
|
}
|
|
public static void Goto3095(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
}
|
|
public static void Goto3096(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
StoreModel storeModel = ModelCenter.Instance.GetModel<StoreModel>();
|
int[] conditions = config.Condition;
|
if(conditions != null && conditions.Length > 0)
|
{
|
storeModel.SetJumpToModel(conditions[0]);
|
}
|
}
|
|
public static void Goto3097(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
}
|
|
public static void Goto3110(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
}
|
|
public static void Goto3114(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
}
|
|
public static void Goto30115(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
AlchemyModel model = ModelCenter.Instance.GetModel<AlchemyModel>();
|
if(model.stoveLevel > 1)
|
{
|
guideAchievementId = _achievementId;
|
}
|
}
|
|
public static void Goto3129(int _achievementId, SuccessConfig config)
|
{
|
if (config == null) return;
|
|
guideAchievementId = _achievementId;
|
var dogzModel = ModelCenter.Instance.GetModel<DogzModel>();
|
int dogzId = 0;
|
if(config.Condition != null && config.Condition.Length > 0)
|
{
|
dogzId = config.Condition[0];
|
}
|
dogzModel.SetSelectDogz(dogzId);
|
}
|
}
|
|
}
|