CharacterDressRender.cs 377 B

123456789101112131415161718
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class CharacterDressRender : MonoBehaviour
  5. {
  6. public object gameObject;
  7. public Good good;
  8. public void Dispose()
  9. {
  10. if(gameObject as GameObject)
  11. {
  12. GameObject go = gameObject as GameObject;
  13. GameObject.Destroy(go);
  14. }
  15. }
  16. }