1.全阶段异步加载与AB包预加载2.node加载无效的问题依然存在
This commit is contained in:
@@ -56,6 +56,12 @@ namespace Demo.Game
|
||||
}
|
||||
}
|
||||
|
||||
public override void ResetEnterGameStatus()
|
||||
{
|
||||
base.ResetEnterGameStatus();
|
||||
UpdateEntry(0, 0);
|
||||
}
|
||||
|
||||
public override IEnumerator UnloadScript()
|
||||
{
|
||||
Content = 0;
|
||||
@@ -71,18 +77,8 @@ namespace Demo.Game
|
||||
return (currentTime - Entries[Content].TimePoint) / (Entries[Content + 1].TimePoint - Entries[Content].TimePoint);
|
||||
}
|
||||
|
||||
if (Entries.Count == 0)
|
||||
if (Entries.Count <= 1)
|
||||
return;
|
||||
if (Entries.Count == 1)
|
||||
{
|
||||
UpdateEntry(0, 0);
|
||||
return;
|
||||
}
|
||||
// TODO : 删除后存在问题
|
||||
if (Entries[0].TimePoint <= 0 && tickType == TickType.Reset)
|
||||
{
|
||||
UpdateEntry(0, 0);
|
||||
}
|
||||
switch (tickType)
|
||||
{
|
||||
case TickType.Reset:
|
||||
|
||||
Reference in New Issue
Block a user