static int get_obstacleAvoidanceType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.NavMeshAgent obj = (UnityEngine.NavMeshAgent)o; UnityEngine.ObstacleAvoidanceType ret = obj.obstacleAvoidanceType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index obstacleAvoidanceType on a nil value" : e.Message)); } }
static int set_obstacleAvoidanceType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.NavMeshAgent obj = (UnityEngine.NavMeshAgent)o; UnityEngine.ObstacleAvoidanceType arg0 = (UnityEngine.ObstacleAvoidanceType)ToLua.CheckObject(L, 2, typeof(UnityEngine.ObstacleAvoidanceType)); obj.obstacleAvoidanceType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index obstacleAvoidanceType on a nil value" : e.Message)); } }