using System; using GAS.Runtime; namespace CoreGame.Render { [Serializable] public class TaskReviveEntity : InstantAbilityTask { public override void OnExecute(in TaskSpec self) { var ctx = self.abilitySpec.ctx; var owner = ctx.ownerEnt; owner.isDead = false; if (owner.hasCollider2DProxy) { var colliderProxy = owner.collider2DProxy; foreach (var collider in colliderProxy.cs) { ColliderSrv.EnableCollider(collider); } } } } }