From 476abf41a7357db0dd870f0d221f1a26481ab2bf Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 31 Aug 2021 09:26:31 +0800 Subject: *misc --- Assets/Scripts/Projectile/Projectile.cs | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'Assets/Scripts/Projectile') diff --git a/Assets/Scripts/Projectile/Projectile.cs b/Assets/Scripts/Projectile/Projectile.cs index 70f2733c..5250d049 100644 --- a/Assets/Scripts/Projectile/Projectile.cs +++ b/Assets/Scripts/Projectile/Projectile.cs @@ -5,9 +5,34 @@ using UnityEngine; public class Projectile : MonoBehaviour { - + public Box collider; + + public bool multiColliders; + public List colliders; + public UnitController owner; public bool isActive; + public Vector3 velocity; // 初始速度 + + public float gravity; + + public bool towardDirection; // foward朝向运动的方向 + + void OnEnable() + { + ColliderRegistry.Instance.AddProjectile(this); + } + + void Update() + { + + } + + void OnDestroy() + { + ColliderRegistry.Instance.RemoveProjectile(this); + } + } \ No newline at end of file -- cgit v1.1-26-g67d0