Better math

This commit is contained in:
amsyarasyiq committed 2021-08-26 11:27:01 +08:00
1 parent 5d362b0885
commit 959c5b1fc8
1 file changed
+3 -3
+3 -3
View File
@@ -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;