Fixes for dotnet7 after #1061 and 5e31a678bd

This commit is contained in:
Wojtek Figat
2023-05-05 11:58:11 +02:00
parent 22239bc2d1
commit ec2226f06e
2 changed files with 3 additions and 3 deletions

View File

@@ -165,7 +165,7 @@ namespace FlaxEngine
public bool TryGetChild<T>(out T actor) where T : Actor
{
actor = GetChild(typeof(T)) as T;
return actor != null;
return (object)actor != null;
}
/// <summary>
@@ -236,7 +236,7 @@ namespace FlaxEngine
public bool TryGetScript<T>(out T script) where T : class
{
script = GetScript(typeof(T)) as T;
return script != null;
return (object)script != null;
}
/// <summary>