You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
624 B
24 lines
624 B
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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|