Exemplo n.º 1
0
        private void OnGlobalLifecycleComponentCreated(LifecycleComponent lifecycleComponent)
        {
            var card = lifecycleComponent.GetComponent <Card>();

            if (card != null)
            {
                TryAddCard(card);
            }
        }
Exemplo n.º 2
0
 private void OnLifecycleComponentCreated(LifecycleComponent lifecycleComponent)
 {
     if (running)
     {
         pendingComponents.Add(lifecycleComponent);
     }
     else
     {
         lifecycleComponents.Add(lifecycleComponent);
     }
 }
Exemplo n.º 3
0
 private void OnSlotDestroyed(LifecycleComponent lifecycleComponent)
 {
     RemoveCard(lifecycleComponent.GetComponent <CardSlot>());
 }
Exemplo n.º 4
0
 private void OnLifecycleComponentDestroyed(LifecycleComponent lifecycleComponent)
 {
     lifecycleComponents.Remove(lifecycleComponent);
 }
Exemplo n.º 5
0
 private void OnSoldierDestroyed(LifecycleComponent lifecycleComponent)
 {
     lifecycleComponent.OnLifecycleComponentDestroyed -= OnSoldierDestroyed;
     soldiers.Remove(lifecycleComponent.GetComponent <Card>());
 }
Exemplo n.º 6
0
 private void OnSelectedCardDestroyed(LifecycleComponent lifecycleComponent)
 {
     SelectedCardSlot = null;
 }
Exemplo n.º 7
0
 private void OnCardDestroyed(LifecycleComponent lifecycleComponent)
 {
     RemoveCard();
     Destroy(gameObject);
 }