浏览代码

Missed a comment

/main/staging/ngo_minigame_structure
nathaniel.buck@unity3d.com 3 年前
当前提交
6023d8dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/Scripts/Game/InGame/SymbolObject.cs

2
Assets/Scripts/Game/InGame/SymbolObject.cs


public void Destroy_ServerRpc()
{
// Actually destroying the symbol objects can cause garbage collection and other delays that might lead to desyncs.
// Instead, just deactivate the object, and it will be cleaned up once the NetworkManager is destroyed.
// Disabling the networked object can also cause issues, so instead, just move the object, and it will be cleaned up once the NetworkManager is destroyed.
// (If object pooling, this is where to instead return it to the pool.)
this.transform.localPosition = Vector3.down * 500;
// TODO: Visually disappear immediately.

正在加载...
取消
保存