mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Better math
This commit is contained in:
1 parent
5d362b0885
commit
959c5b1fc8
1 file changed
+3
-3
@@ -45,13 +45,13 @@ namespace Reactor.Patches
|
||||
"JoinGameButton"
|
||||
};
|
||||
|
||||
var offset = Vector3.down * 0.7f;
|
||||
var offset = Vector3.up;
|
||||
var gameObjects = toMove.Select(x => GameObject.Find("NormalMenu/" + x)).ToList();
|
||||
if (gameObjects.Contains(null)) return false;
|
||||
|
||||
gameObjects.ForEach(x => {
|
||||
x.transform.position += offset;
|
||||
offset -= Vector3.down * 0.2f;
|
||||
x.transform.position = offset;
|
||||
offset += Vector3.down * 1.5f;
|
||||
});
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user