升级obi

This commit is contained in:
2026-01-22 22:08:21 +08:00
parent 120b8cda26
commit 20f14322bc
1067 changed files with 149894 additions and 29583 deletions

View File

@@ -2,13 +2,16 @@
using System.Collections.Generic;
using UnityEngine;
public class RopeTenser : MonoBehaviour
namespace Obi.Samples
{
public float force = 10;
// Update is called once per frame
void Update()
public class RopeTenser : MonoBehaviour
{
GetComponent<Rigidbody>().AddForce(Vector3.down * force);
public float force = 10;
// Update is called once per frame
void Update()
{
GetComponent<Rigidbody>().AddForce(Vector3.down * force);
}
}
}