Initial Commit

This commit is contained in:
2026-03-16 14:38:46 +02:00
commit b8f7327a21
2327 changed files with 253610 additions and 0 deletions
@@ -0,0 +1,32 @@
using UnityEngine;
namespace Zenject.Asteroids
{
public static class UnityExtensionMethods
{
// Since transforms return their position as a property,
// you can't set the x/y/z values directly, so you have to
// store a temporary Vector3
// Or you can use these methods instead
public static void SetX(this Transform transform, float x)
{
var pos = transform.position;
pos.x = x;
transform.position = pos;
}
public static void SetY(this Transform transform, float y)
{
var pos = transform.position;
pos.y = y;
transform.position = pos;
}
public static void SetZ(this Transform transform, float z)
{
var pos = transform.position;
pos.z = z;
transform.position = pos;
}
}
}