public void OnXueChange(int val) { if (val <= 0 && IsActive) { PrefabPoolingSystem.Instance.Despawn(gameObject); } Health.ChangePercent((float)val / MaxXue); }
public void OnXueChange(int val) { if (val <= 0 && IsActive) { PrefabPoolingSystem.Instance.Despawn(gameObject); } Health.ChangePercent((float)val / MaxXue); }