狗屎Minimax坏我代码

This commit is contained in:
SoulliesOfficial
2026-04-18 13:57:19 -04:00
parent 41140a2017
commit 7379583165
473 changed files with 34480 additions and 8069 deletions

View File

@@ -1,6 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
namespace SickscoreGames.ExampleScene
{
@@ -21,7 +19,13 @@ namespace SickscoreGames.ExampleScene
// reset velocity
Rigidbody rBody = other.gameObject.GetComponent<Rigidbody> ();
if (rBody != null)
rBody.linearVelocity = other.transform.forward * 5f;
{
#if UNITY_6000_0_OR_NEWER
rBody.linearVelocity = other.transform.forward * 5f;;
#else
rBody.velocity = other.transform.forward * 5f;;
#endif
}
}
}
#endregion