SamplePathPosition() private méthode

private SamplePathPosition ( int areaMask, float maxDistance, NavMeshHit &hit ) : bool
areaMask int
maxDistance float
hit NavMeshHit
Résultat bool
Exemple #1
0
 static public int SamplePathPosition(IntPtr l)
 {
     try{
         UnityEngine.NavMeshAgent self = (UnityEngine.NavMeshAgent)checkSelf(l);
         System.Int32             a1;
         checkType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         UnityEngine.NavMeshHit a3;
         System.Boolean         ret = self.SamplePathPosition(a1, a2, out a3);
         pushValue(l, ret);
         pushValue(l, a3);
         return(2);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Exemple #2
0
 static public int SamplePathPosition(IntPtr l)
 {
     try {
         UnityEngine.NavMeshAgent self = (UnityEngine.NavMeshAgent)checkSelf(l);
         System.Int32             a1;
         checkType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         UnityEngine.NavMeshHit a3;
         var ret = self.SamplePathPosition(a1, a2, out a3);
         pushValue(l, true);
         pushValue(l, ret);
         pushValue(l, a3);
         return(3);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #3
0
 static int SamplePathPosition(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         UnityEngine.NavMeshAgent obj = (UnityEngine.NavMeshAgent)ToLua.CheckObject(L, 1, typeof(UnityEngine.NavMeshAgent));
         int   arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         UnityEngine.NavMeshHit arg2;
         bool o = obj.SamplePathPosition(arg0, arg1, out arg2);
         LuaDLL.lua_pushboolean(L, o);
         ToLua.PushValue(L, arg2);
         return(2);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }