private void OnGlobalLifecycleComponentCreated(LifecycleComponent lifecycleComponent)
        {
            var card = lifecycleComponent.GetComponent <Card>();

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