Esempio n. 1
0
 static int GetHashCode(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Vector2 obj = (UnityEngine.Vector2)ToLua.CheckObject(L, 1, typeof(UnityEngine.Vector2));
         int o = obj.GetHashCode();
         LuaDLL.lua_pushinteger(L, o);
         ToLua.SetBack(L, 1, obj);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 public override int GetHashCode()
 {
     return(Dir.GetHashCode() + Point.GetHashCode());
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return(center.GetHashCode() + 7 * size.GetHashCode());
 }