修改断线重连自动开始问题

This commit is contained in:
Caiyanpeng committed 2022-06-07 11:32:23 +08:00
1 parent bfc56dded5
commit ff878d5d50
9 files changed
+193 -182

No files matched your search

@@ -609,10 +609,10 @@ public class RowerHomeScript : PFUIPanel
{
Rower.Reset();
}
if (RowerData != null)
{
RowerData.Reset();
}
//if (RowerData != null)
//{
// RowerData.Reset();
//}
GetComponent<RowerMultiModeScript>().GetShadowList(rowerType, reRowData);
btnStart.tag = "Start";
btnStart.GetComponent<Image>().sprite = spriteDict["Start"];
@@ -996,6 +996,10 @@ public class RowerHomeScript : PFUIPanel
{
Helper.DelectDir(dir);
UIManager.CloseConfirm();
if (Rower != null)
{
Rower.Reset();
}
});
}
else
@@ -1051,6 +1055,10 @@ public class RowerHomeScript : PFUIPanel
{
Helper.DelectDir(dir);
UIManager.CloseConfirm();
if (Rower != null)
{
Rower.Reset();
}
});
}
}
@@ -1292,7 +1300,7 @@ public class RowerHomeScript : PFUIPanel
{
isFirstReset = true;
Rower.Reset();
RowerData.Reset();
//RowerData.Reset();
}
}
if (transform.Find("Stopped").gameObject.activeInHierarchy)
@@ -464,11 +464,11 @@ public class RowerMultiModeScript : MonoBehaviour
}
}
//if(!data.isMine) diffWidth = 101;
t.Find("Left/Rank").GetComponent<Text>().text = (userList.FindIndex(x => x.UserId == data.UserId) + 1).ToString("00");
if (is0to100(diffWidth))
{
var tWidth = (diffWidth / 100f) * width;
t.Find("Main/Boat").gameObject.SetActive(true);
t.Find("Left/Rank").GetComponent<Text>().text = (userList.FindIndex(x => x.UserId == data.UserId) + 1).ToString("00");
if (isAni)
{
t.Find("Main/Boat").DOLocalMoveX(21.5f + tWidth, 0.9f);