private void OnGlobalLifecycleComponentCreated(LifecycleComponent lifecycleComponent) { var card = lifecycleComponent.GetComponent <Card>(); if (card != null) { TryAddCard(card); } }
private void OnLifecycleComponentCreated(LifecycleComponent lifecycleComponent) { if (running) { pendingComponents.Add(lifecycleComponent); } else { lifecycleComponents.Add(lifecycleComponent); } }
private void OnSlotDestroyed(LifecycleComponent lifecycleComponent) { RemoveCard(lifecycleComponent.GetComponent <CardSlot>()); }
private void OnLifecycleComponentDestroyed(LifecycleComponent lifecycleComponent) { lifecycleComponents.Remove(lifecycleComponent); }
private void OnSoldierDestroyed(LifecycleComponent lifecycleComponent) { lifecycleComponent.OnLifecycleComponentDestroyed -= OnSoldierDestroyed; soldiers.Remove(lifecycleComponent.GetComponent <Card>()); }
private void OnSelectedCardDestroyed(LifecycleComponent lifecycleComponent) { SelectedCardSlot = null; }
private void OnCardDestroyed(LifecycleComponent lifecycleComponent) { RemoveCard(); Destroy(gameObject); }