Merge branch 'simplify_actor_comparations' of https://github.com/RuanLucasGD/FlaxEngine into RuanLucasGD-simplify_actor_comparations

This commit is contained in:
Wojtek Figat
2023-05-05 10:16:47 +02:00

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>