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