浏览代码

Fixed Factory instance count

/main
Thomas ICHÉ 6 年前
当前提交
2f3e2e10
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Runtime/Factory/Factory.cs

2
Runtime/Factory/Factory.cs


if (m_Instances == null)
m_Instances = new List<GameObject>();
if (m_Instances.Count <= MaxInstances)
if (m_Instances.Count < MaxInstances)
{
GameObject newInstance = Spawn(SelectBlueprint(), SpawnTarget);

正在加载...
取消
保存