Esempio n. 1
0
    public static void Destroy(IControl control)
    {
        ObjectControl objControl = control as ObjectControl;

        objControl.Dispose();
        GameObject.Destroy(objControl.GameObject);
        list.Remove(objControl);
    }