Compare commits

..

No commits in common. "1131f1a00b9f97d2000bfbfa39ebcd460686464a" and "3a231b86556f39c90de092f61a175a9fd624b856" have entirely different histories.

4 changed files with 43 additions and 38 deletions

View File

@ -5987,7 +5987,6 @@ MonoBehaviour:
is_Reflash: 0 is_Reflash: 0
is_NOneedReflash: 0 is_NOneedReflash: 0
snailMoveNum: 0 snailMoveNum: 0
racingPanel: {fileID: 394840207}
--- !u!1 &402443204 --- !u!1 &402443204
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -15318,10 +15317,10 @@ MonoBehaviour:
m_faceColor: m_faceColor:
serializedVersion: 2 serializedVersion: 2
rgba: 4294967295 rgba: 4294967295
m_fontSize: 61.45 m_fontSize: 60
m_fontSizeBase: 60 m_fontSizeBase: 60
m_fontWeight: 400 m_fontWeight: 400
m_enableAutoSizing: 1 m_enableAutoSizing: 0
m_fontSizeMin: 18 m_fontSizeMin: 18
m_fontSizeMax: 72 m_fontSizeMax: 72
m_fontStyle: 1 m_fontStyle: 1
@ -24485,7 +24484,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
rectTransform: {fileID: 1705891619} rectTransform: {fileID: 1705891619}
isMove: 0 orginPos: {x: 0, y: 0}
--- !u!1 &1725087456 --- !u!1 &1725087456
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -95,7 +95,7 @@ public class logoPanel : Base
//} //}
loginbody body = new loginbody loginbody body = new loginbody
{ {
userName = "541236987", userName = "123698745",
//password = "123456", //password = "123456",
verifyCode = 111111 verifyCode = 111111
}; };

View File

@ -49,7 +49,6 @@ public class AllManeger : MonoBehaviour
public bool is_NOneedReflash;//是否需要刷新 public bool is_NOneedReflash;//是否需要刷新
public int snailMoveNum;//蜗牛出动数量 public int snailMoveNum;//蜗牛出动数量
public RacingPanel racingPanel;
// Start is called before the first frame update // Start is called before the first frame update
async void Start() async void Start()
{ {
@ -180,28 +179,27 @@ public class AllManeger : MonoBehaviour
} }
public async void Fuck524() public async void Fuck524()
{ {
knightKill524 = await queryKnightKill524.queryKnightKill(id); knightKill524 = await queryKnightKill524.queryKnightKill(id);
if (knightKill524.data.horseNoKill != "") //if (knightKill524.data.horseNoKill!="")
{ //{
string[] parts = knightKill524.data.horseNoKill.Split(","); // 根据 ',' 分割字符串d // string[] parts = knightKill524.data.horseNoKill.Split(","); // 根据 ',' 分割字符串d
KillNos = parts.Select(int.Parse).ToList(); // KillNos = parts.Select(int.Parse).ToList();
foreach (int killno in KillNos) // foreach (int killno in KillNos)
{ // {
Debug.Log("击杀蜗牛" + killno); // Debug.Log("击杀蜗牛"+killno);
foreach (HorseInfo horse in horseInfos) // foreach (HorseInfo horse in horseInfos)
{ // {
if (horse.HorseNo == killno) // if (horse.HorseNo == killno)
{ // {
Debug.Log("wwwww" + horse.HorseNo); // Debug.Log("wwwww" + horse.HorseNo);
horse.snail.is_die = true; // horse.snail.is_die = true;
} // }
} // }
} // }
} //}
if (knightKill524.data.horseNoRemain!= "") if (knightKill524.data.horseNoRemain!= "")
{ {
@ -287,30 +285,34 @@ public class AllManeger : MonoBehaviour
{ {
horse.snail.is_die = true; horse.snail.is_die = true;
horse.snail.killsnail(); // 如果不存在于 allNos 中,设置 is_die 为 true horse.snail.killsnail(); // 如果不存在于 allNos 中,设置 is_die 为 true
horse.gameObject.SetActive(false);//禁用按钮
} }
else else
{ {
horse.snail.is_die = false; horse.snail.is_die = false;
horse.snail.killsnail();// 如果存在于 allNos 中,设置 is_die 为 false horse.snail.killsnail();// 如果存在于 allNos 中,设置 is_die 为 false
horse.gameObject.SetActive(true);//启用按钮
} }
} }
} }
//if (GameKnightModel.HorseNoKill != "")//禁用按钮 //if (GameKnightModel.HorseNoKill!="")
//{ //{
// string[] parts = GameKnightModel.HorseNoKill.Split(","); // 根据 ',' 分割字符串d // string[] parts = GameKnightModel.HorseNoKill.Split(","); // 根据 ',' 分割字符串d
// KillNos = parts.Select(int.Parse).ToList(); // KillNos = parts.Select(int.Parse).ToList();
// foreach (int killno in KillNos) // foreach (int killno in KillNos)
// { // {
// SetBtnHide(killno); // foreach (HorseInfo horse in horseInfos)
// {
// if (horse.HorseNo == killno)
// {
// horse.snail.is_die = true;
// }
// }
// } // }
//} //}
//if (GameKnightModel.HorseNoRemain != "")//解放按钮 //if (GameKnightModel.HorseNoRemain!="")
//{ //{
// string[] parts_2 = GameKnightModel.HorseNoRemain.Split(","); // string[] parts_2 = GameKnightModel.HorseNoRemain.Split(",");
// WinNos = parts_2.Select(int.Parse).ToList(); // WinNos = parts_2.Select(int.Parse).ToList();
@ -318,7 +320,13 @@ public class AllManeger : MonoBehaviour
// foreach (int winno in WinNos) // foreach (int winno in WinNos)
// { // {
// SetBtnShow(winno); // foreach (HorseInfo horse in horseInfos)
// {
// if (horse.HorseNo == winno)
// {
// horse.snail.is_victory = true;
// }
// }
// } // }
//} //}

View File

@ -58,20 +58,18 @@ public class snailRider : MonoBehaviour
if (!is_die) if (!is_die)
{ {
animator.SetInteger("State",1);//切换为移动动画 animator.SetInteger("State",1);//切换为移动动画
float suiji = 0;//时间时间 int suiji = 0;
if (is_victory) if (is_victory)
{ {
suiji = UnityEngine.Random.Range(4, 6); suiji = UnityEngine.Random.Range(-2, -1);
} }
else else
{ {
suiji = UnityEngine.Random.Range(5, 10); suiji = UnityEngine.Random.Range(4, 6);
} }
mySequence.Append(transform.DOMoveX(startingPoint.transform.position.x, 0.01f))
transform.DOMoveX(end.transform.position.x, suiji).SetEase(Ease.Linear).OnComplete(()=> { .Append(transform.DOMoveX(end.transform.position.x, 5f + suiji)).SetEase(Ease.Linear).OnComplete(()=> {
animator.SetInteger("State", 0); animator.SetInteger("State", 0);
Debug.Log("动画完成,切换为待机动画"); Debug.Log("动画完成,切换为待机动画");
}) //切换为待机动画 }) //切换为待机动画