public static void RemoveComponent(this GameObject go, System.Type type) { UnityFunction.DestoryObject((UnityEngine.Object)go.GetComponent(type)); }
public static void RemoveComponent(this Component comp) { UnityFunction.DestoryObject((UnityEngine.Object)comp); }