浏览代码

renamed random sample method in GameObjectCache

/generic-asset-sources
sleal-unity 3 年前
当前提交
3f7f00d0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Utilities/GameObjectOneWayCache.cs

2
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Utilities/GameObjectOneWayCache.cs


/// Otherwise, instantiate a new instance of the random gameObject.
/// </summary>
/// <returns>A random cached GameObject</returns>
public GameObject GetOrInstantiateRandomObject()
public GameObject GetOrInstantiateRandomCachedObject()
{
return GetOrInstantiate(m_GameObjects[(int)(m_Sampler.Sample() * m_GameObjects.Length)]);
}

正在加载...
取消
保存