diff options
author | chai <chaifix@163.com> | 2021-08-31 09:26:31 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-08-31 09:26:31 +0800 |
commit | 476abf41a7357db0dd870f0d221f1a26481ab2bf (patch) | |
tree | 0307852c90fb274c7cc119de70146db83c725be8 /Assets/Scripts/Projectile/Projectile.cs | |
parent | 86ec4522be1d0b932006801c7bf2297adc9f0028 (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Projectile/Projectile.cs')
-rw-r--r-- | Assets/Scripts/Projectile/Projectile.cs | 27 |
1 files changed, 26 insertions, 1 deletions
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<Box> 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 |