static int Equals(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Vector2 obj = (UnityEngine.Vector2)ToLua.ToObject(L, 1); object arg0 = ToLua.ToVarObject(L, 2); bool o = obj.Equals(arg0); LuaDLL.lua_pushboolean(L, o); ToLua.SetBack(L, 1, obj); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
/// <summary> /// Determines whether position vector is invalid. /// </summary> /// <param name="position">The position.</param> /// <returns> /// <c>true</c> position is invalid; otherwise, <c>false</c>. /// </returns> public static bool IsInvalidPosition(Vector2 position) { return position.Equals(InvalidPosition); }
public bool IsBonusPoint(Vector2 point) { var bonusPoint = gameData.defs.mazes[gameController.CurrentMaze].view.bonusPoint; return point.Equals(new Vector2(bonusPoint.x, bonusPoint.y)); }
// methods static bool Vector2_Equals__Object(JSVCall vc, int argc) { int len = argc; if (len == 1) { System.Object arg0 = (System.Object)JSMgr.datax.getWhatever((int)JSApi.GetType.Arg); UnityEngine.Vector2 argThis = (UnityEngine.Vector2)vc.csObj; JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(argThis.Equals(arg0))); JSMgr.changeJSObj(vc.jsObjID, argThis); } return(true); }