Esempio n. 1
0
 public void OnNodeClosed(Vector3 position, List <Card> result, bool success)
 {
     nodeClosedDelegate?.Invoke();
     for (int i = 0; i < resultsConfigContainer.transform.childCount; i++)
     {
         ScenarioCondition scenarioCondition = resultsConfigContainer.transform.GetChild(i).GetComponent <ScenarioCondition>();
         if (scenarioCondition != null && success == scenarioCondition.checkSuccess && scenarioCondition.HandleNodeClosed(position, result))
         {
             return;
         }
     }
 }
Esempio n. 2
0
 private void Start()
 {
     gift = GetComponentInChildren <ScenarioActionGiftConfig>();
     cond = GetComponentInParent <ScenarioCondition>();
     cond.onConditionSuccess += SpawnGift;
 }
Esempio n. 3
0
 private void Start()
 {
     cond = GetComponentInParent <ScenarioCondition>();
     cond.checkConditionDelegate += CheckCondition;
 }
Esempio n. 4
0
 private void Start()
 {
     cond = GetComponentInParent <ScenarioCondition>();
     cond.onConditionSuccess += SpawnNode;
 }