很多更新,服务端连接,新UI和系统
This commit is contained in:
@@ -64,6 +64,7 @@ public class GameplayTrackStartIntroAnimator : MonoBehaviour
|
||||
private readonly List<Transform> gameObjectRects = new List<Transform>();
|
||||
private readonly List<Transform> colorRects = new List<Transform>();
|
||||
private readonly List<Transform> allies = new List<Transform>();
|
||||
private readonly List<Transform> explicitKeyDownRects = new List<Transform>(5);
|
||||
|
||||
private readonly Dictionary<Graphic, float> baseGraphicAlpha = new Dictionary<Graphic, float>();
|
||||
private readonly Dictionary<SpriteRenderer, float> baseSpriteAlpha = new Dictionary<SpriteRenderer, float>();
|
||||
@@ -105,6 +106,24 @@ public class GameplayTrackStartIntroAnimator : MonoBehaviour
|
||||
playRoutine = StartCoroutine(PlayRoutine());
|
||||
}
|
||||
|
||||
public void SetExplicitKeyDownRects(IEnumerable<Transform> rects)
|
||||
{
|
||||
explicitKeyDownRects.Clear();
|
||||
if (rects != null)
|
||||
{
|
||||
foreach (Transform rect in rects)
|
||||
{
|
||||
if (rect != null)
|
||||
{
|
||||
explicitKeyDownRects.Add(rect);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
refsCached = false;
|
||||
preStartPrepared = false;
|
||||
}
|
||||
|
||||
private IEnumerator PreparePreStartStateNextFrame()
|
||||
{
|
||||
// Re-apply after one frame so late UI initializers don't bring these elements visible before start.
|
||||
@@ -154,10 +173,17 @@ public class GameplayTrackStartIntroAnimator : MonoBehaviour
|
||||
enemyStatics = FindSceneTransformByNameUnder("statics", enemyRoot);
|
||||
|
||||
keyDownRects.Clear();
|
||||
if (keyDown != null)
|
||||
keyDownRects.AddRange(CollectDescendantsByNameContains(keyDown, "sdw 3"));
|
||||
keyDownRects.Sort((a, b) => a.localPosition.x.CompareTo(b.localPosition.x));
|
||||
FilterLaneRects(keyDownRects, keyDownTargetY, 5);
|
||||
if (explicitKeyDownRects.Count > 0)
|
||||
{
|
||||
keyDownRects.AddRange(explicitKeyDownRects);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (keyDown != null)
|
||||
keyDownRects.AddRange(CollectDescendantsByNameContains(keyDown, "sdw 3"));
|
||||
keyDownRects.Sort((a, b) => a.localPosition.x.CompareTo(b.localPosition.x));
|
||||
FilterLaneRects(keyDownRects, keyDownTargetY, 5);
|
||||
}
|
||||
|
||||
gameObjectRects.Clear();
|
||||
List<Transform> byNamedRoots = CollectSdw3UnderNamedRoots("GameObject", keyDown);
|
||||
|
||||
Reference in New Issue
Block a user