浏览代码

Fixed Repawn coroutine

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

4
Runtime/Factory/Factory.cs


m_RespawnCoroutines.RemoveAll(o => o == null);
}
m_RespawnCoroutines.Add(StartCoroutine("Respawn", RespawnDelay));
m_RespawnCoroutines.Add(StartCoroutine(Respawn(RespawnDelay)));
private IEnumerable Respawn(float time)
private IEnumerator Respawn(float time)
{
yield return new WaitForSeconds(time);
Callable.Call(OnRespawn, this.gameObject);

正在加载...
取消
保存