private void DestroyableOnRepaired(Destroyable destroyable) { cooldownBarCanvasGroup.alpha = 1f; }
public void Destroy(Destroyable destroyable) { destroyable.Destroy(); onDestroyedDestroyable.Invoke(); DestroyedDestroyable?.Invoke(destroyable); }
private void Awake() { _destroyable = GetComponent <Destroyable>(); cooldownBarCanvasGroup.alpha = 0f; }