void OnOwnerAttack(SkEntity enemy, float value) { if (enemy is SkAliveEntity && !enemy.Equals(null)) { _ownerAttackEntity = enemy as SkAliveEntity; _ownerAttackView = enemy.GetComponent <ViewCmpt>(); } }
void OnOwnerHpReduce(SkEntity enemy, float value) { enemy = PETools.PEUtil.GetCaster(enemy); if (enemy is SkAliveEntity && !enemy.Equals(null)) { _attackOwnerEntity = enemy as SkAliveEntity; _attackOwnerView = enemy.GetComponent <ViewCmpt>(); } }