Merge branch 'RuanLucasGD-simplify_actor_comparations'

This commit is contained in:
2023-05-05 10:16:56 +02:00
+24
View File
@@ -205,6 +205,30 @@ namespace FlaxEngine
return obj != null && obj.__unmanagedPtr != IntPtr.Zero;
}
/// <summary>
/// Checks whether the two objects are equal.
/// </summary>
/// <param name="left"></param>
/// <param name="right"></param>
/// <returns></returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool operator == (Object left, Object right)
{
return Object.Equals(left, right);
}
/// <summary>
/// Checks whether the two objects are not equal.
/// </summary>
/// <param name="left"></param>
/// <param name="right"></param>
/// <returns></returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool operator !=(Object left, Object right)
{
return !Object.Equals(left, right);
}
/// <summary>
/// Gets the pointer to the native object. Handles null object reference (returns zero).
/// </summary>