static public int GetComponentInMy(IntPtr l) { try { BaseBehaviour self = (BaseBehaviour)checkSelf(l); var ret = self.GetComponentInMy <UnityEngine.Component>(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }