mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交代码
This commit is contained in:
25
JNFrame/Assets/Script/demo/DemoMain.cs
Normal file
25
JNFrame/Assets/Script/demo/DemoMain.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BepuPhysics;
|
||||
using BepuUtilities.Memory;
|
||||
using Plugins.JNGame.BepuPhysics;
|
||||
using UnityEngine;
|
||||
|
||||
public class DemoMain : MonoBehaviour
|
||||
{
|
||||
private JNBepuPhysics Physics;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Awake()
|
||||
{
|
||||
|
||||
Physics = new JNBepuPhysics();
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
Physics.OnUpdate(Time.deltaTime);
|
||||
}
|
||||
}
|
11
JNFrame/Assets/Script/demo/DemoMain.cs.meta
Normal file
11
JNFrame/Assets/Script/demo/DemoMain.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 59ce1e82a0de1ef4281ebd5856759346
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user