using System.Collections; using System.Collections.Generic; using UnityEngine; public class CharacterDressRender : MonoBehaviour { public object gameObject; public Good good; public void Dispose() { if(gameObject as GameObject) { GameObject go = gameObject as GameObject; GameObject.Destroy(go); } } }