feat: GameObject Extensions
This commit is contained in:
		
							
								
								
									
										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;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user