diff options
author | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
commit | 22891bf59032ba88262824255a706d652031384b (patch) | |
tree | 7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/Scripts/Effects/Spark.cs | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/Scripts/Effects/Spark.cs')
-rw-r--r-- | Assets/Scripts/Effects/Spark.cs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/Assets/Scripts/Effects/Spark.cs b/Assets/Scripts/Effects/Spark.cs deleted file mode 100644 index 5f8856c4..00000000 --- a/Assets/Scripts/Effects/Spark.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class Spark : MonoBehaviour
-{
- public string Name;
- public float LifeTime;
-
- private float time;
-
- public Transform Host;
-
- private void Awake()
- {
- }
-
- private void OnEnable()
- {
- time = 0;
- }
-
- private void Update()
- {
- time += Time.deltaTime;
- if(time > LifeTime)
- {
- SparksManager.Instance.CycleSpark(this);
- }
- if (Host != null)
- {
- transform.position = Host.position;
- }
- }
-
-}
|