浏览代码

Add menu for Random Toggle + Slight breath in Streaming manager

/main
Thomas ICHÉ 6 年前
当前提交
641e0ae9
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. 11
      Runtime/Actions/RandomToggleGameObjectAction.cs
  2. 1
      Runtime/LevelStreaming/LevelStreamingManager.cs

11
Runtime/Actions/RandomToggleGameObjectAction.cs


}
}
[ContextMenu("Populate From Children")]
void PopulateFromChildren()
{
int count = transform.childCount;
Targets = new GameObject[count];
for(int i = 0; i < count; i++)
{
Targets[i] = transform.GetChild(i).gameObject;
}
}
}
}

1
Runtime/LevelStreaming/LevelStreamingManager.cs


{
LogDebugInformation("START LOAD/UNLOAD FOR LEVELS...");
SetProgressBar(0.0f, true);
yield return new WaitForEndOfFrame();
if(DelayBeforeLoad >= 0.0f)
yield return new WaitForSeconds(DelayBeforeLoad);

正在加载...
取消
保存