feat: GameObject Extensions
This commit is contained in:
parent
07666359f2
commit
fa7eeed267
12
Engine.Core/Extensions/GameObjectExtensions.cs
Normal file
12
Engine.Core/Extensions/GameObjectExtensions.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using Syntriax.Engine.Core.Abstract;
|
||||
|
||||
namespace Syntriax.Engine.Core;
|
||||
|
||||
public static class GameObjectExtensions
|
||||
{
|
||||
public static IGameObject SetGameObject(this IGameObject gameObject, string name)
|
||||
{
|
||||
gameObject.Name = name;
|
||||
return gameObject;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user