Exemple #1
0
 /// <summary>
 /// 在隐藏的时候 添加到Pool里面。
 /// </summary>
 void OnDisable()
 {
     if (!this.gameObject.activeSelf && !this.isDestroyed)
     {
         ResFactory.addPool(this.gameObject);
     }
 }