using UnityEngine; using Entitas; namespace CoreGame.Render { [Combat] public class CurveBulletComponent : IComponent, IReset { public Vector2 origin; public Vector2 destination; public Vector2 control; public int explosionRangeEid; public float totalTime; internal float accumulatedTime; public void Reset() { accumulatedTime = 0f; if (explosionRangeEid != 0) { var explosionRangeEnt = Contexts.Combat.GetEntity(explosionRangeEid); if (explosionRangeEnt != null) { explosionRangeEnt.isDestroyEnt = true; } } } } }