tcp逻辑调整,历史逻辑增加赛事相关派生类
This commit is contained in:
1 parent
ec45246aa4
commit
d6a7cd798f
41 files changed
+5420
-3128
No files matched your search
@@ -28,8 +28,15 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
_playerController = FindObjectOfType<PlayerController>();
|
||||
//创建UI
|
||||
uiObject = transform.parent.Find("SingleUI/Panel/ArrowList");
|
||||
arrowImage = Instantiate(Resources.Load<Image>("UI/Prefab/Ride/ReviewArrow"), uiObject);
|
||||
arrowImage.color = new Color(0.1529412f, 0.8745098f, 0.8901961f);
|
||||
if (mainController.cyclingController.Mode == CyclingModel.Competition)
|
||||
{
|
||||
arrowImage = Instantiate(Resources.Load<Image>("UI/Prefab/Match/CompetitionArrow"), uiObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
arrowImage = Instantiate(Resources.Load<Image>("UI/Prefab/Ride/ReviewArrow"), uiObject);
|
||||
arrowImage.color = new Color(0.1529412f, 0.8745098f, 0.8901961f);
|
||||
}
|
||||
}
|
||||
public override bool GetStart()
|
||||
{
|
||||
@@ -99,6 +106,14 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
protected override void AfterExcute()
|
||||
{
|
||||
var playerScreenPos = Camera.main.WorldToScreenPoint(transform.position);
|
||||
//如果是比赛模式头像
|
||||
if (mainController.cyclingController.Mode == CyclingModel.Competition)
|
||||
{
|
||||
playerScreenPos.y += 10f;
|
||||
}
|
||||
//如果观察的是当前用户
|
||||
var iscurrentUser = mainController.currentPlayer.UserId == UserId;
|
||||
arrowImage.gameObject.SetActive(!iscurrentUser);
|
||||
((RectTransform)arrowImage.transform).position = playerScreenPos;
|
||||
|
||||
if (IsShowInfo)
|
||||
|
||||
Reference in new issue
Block a user