r2mods/ilspy_dump/ror2_csproj/RoR2/SetGravity.cs

19 lines
290 B
C#

using UnityEngine;
namespace RoR2;
public class SetGravity : MonoBehaviour
{
public float newGravity = -30f;
private void OnEnable()
{
Physics.gravity = new Vector3(0f, newGravity, 0f);
}
private void OnDisable()
{
Physics.gravity = new Vector3(0f, Run.baseGravity, 0f);
}
}