public static bool UnityEngineTimeMCall(object objSelf, string functionName, List <CQ_Value> param, out CQ_Value returnValue, bool mustEqual) { UnityEngine.Time obj = (UnityEngine.Time)objSelf; if (param.Count == 1 && functionName == "Equals" && MatchType(param, new Type[] { typeof(object) }, mustEqual)) { returnValue = new CQ_Value(); returnValue.type = typeof(bool); returnValue.value = obj.Equals((object)param[0].ConvertTo(typeof(object))); return(true); } if (param.Count == 0 && functionName == "GetHashCode") { returnValue = new CQ_Value(); returnValue.type = typeof(int); returnValue.value = obj.GetHashCode(); return(true); } if (param.Count == 0 && functionName == "GetType") { returnValue = new CQ_Value(); returnValue.type = typeof(System.Type); returnValue.value = obj.GetType(); return(true); } if (param.Count == 0 && functionName == "ToString") { returnValue = new CQ_Value(); returnValue.type = typeof(string); returnValue.value = obj.ToString(); return(true); } returnValue = null; return(false); }
public static bool obj_equal(long L, long R) { UnityEngine.Time left = FCGetObj.GetObj <UnityEngine.Time>(L); UnityEngine.Time right = FCGetObj.GetObj <UnityEngine.Time>(R); if (left != null) { return(left.Equals(right)); } if (right != null) { return(right.Equals(left)); } return(true); }