Fix Ping restart collider issue and Shose flash issue
This commit is contained in:
@@ -61,35 +61,6 @@ public static class ActionHistory
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (item.Type == ActionType.PingFirst)
|
||||
{
|
||||
// 如果在定位(第一阶段),则重置所有的定位,退回到只有第一个点发光的状态
|
||||
while (History.Count > 0 && History.Peek().Type == ActionType.PingFirst)
|
||||
{
|
||||
History.Pop();
|
||||
}
|
||||
|
||||
var allPings = Object.FindObjectsOfType<PingClickHandler>(true);
|
||||
foreach (var p in allPings)
|
||||
{
|
||||
if (p.chanraoObject != null) p.chanraoObject.SetActive(false);
|
||||
|
||||
if (p.pingIndex == 0)
|
||||
{
|
||||
p.gameObject.SetActive(true);
|
||||
p.ResetState();
|
||||
}
|
||||
else
|
||||
{
|
||||
p.UndoShow();
|
||||
}
|
||||
}
|
||||
|
||||
var sm = Object.FindObjectOfType<StepManager>();
|
||||
if (sm != null) sm.SetPingStepIndex(0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if (item.Type == ActionType.Shose)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user