private void OnDestroy() { if (null != gameObject) { AppLog.Info("OnDestroy {0}", this.gameObject.name); } if (null != resState) { resState.SubRef(); } }
public void SetResourceState(ResourceState newResState) { if (null != newResState) { newResState.AddRef(); } if (null != resState) { resState.SubRef(); } resState = newResState; }