public void Deactivate() { EventListener.OnPlayerSpawn -= RunCommand; RigidBodyController rigidbody = VarHelper.PlayerObj.GetComponent <RigidBodyController>(); rigidbody.SetCustomVelocity(1); isActive = false; }
private void RunCommand(bool isRespawn) { if (!isActive) { return; } if (isRespawn) { return; } RigidBodyController rigidbody = VarHelper.PlayerObj.GetComponent <RigidBodyController>(); rigidbody.SetCustomVelocity(multiplier); DebugManager.LogToFile("[Cheat] Ittle's speed set to " + multiplier); }