private void OnGlobalLifecycleComponentCreated(LifecycleComponent lifecycleComponent) { var card = lifecycleComponent.GetComponent <Card>(); if (card != null) { TryAddCard(card); } }
private void OnSlotDestroyed(LifecycleComponent lifecycleComponent) { RemoveCard(lifecycleComponent.GetComponent <CardSlot>()); }
private void OnSoldierDestroyed(LifecycleComponent lifecycleComponent) { lifecycleComponent.OnLifecycleComponentDestroyed -= OnSoldierDestroyed; soldiers.Remove(lifecycleComponent.GetComponent <Card>()); }