From dcaad8044384bce4f4358522108bf9a2481ee4e0 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Oct 2020 12:44:29 +0800 Subject: *physics --- Assets/Scripts/Physics/PhysicsWorld.cs | 36 +++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'Assets/Scripts/Physics/PhysicsWorld.cs') diff --git a/Assets/Scripts/Physics/PhysicsWorld.cs b/Assets/Scripts/Physics/PhysicsWorld.cs index 4ceb4a37..085716d1 100644 --- a/Assets/Scripts/Physics/PhysicsWorld.cs +++ b/Assets/Scripts/Physics/PhysicsWorld.cs @@ -2,17 +2,35 @@ using System.Collections.Generic; using UnityEngine; -public class PhysicsWorld : MonoBehaviour +/// +/// 标记 +/// +public enum PhysicsTag { - // Start is called before the first frame update - void Start() - { - - } + Player, + Oponent, +} + +/// +/// 分类 +/// +public enum PhysicsGroup +{ + Character, + Environment, + Props, +} + +/// +/// 适用于战斗的物理系统 +/// +public class PhysicsWorld : Singleton +{ + private int m_UpdateRate = 60; - // Update is called once per frame - void Update() + public void Update() { - + } + } -- cgit v1.1-26-g67d0