public void initiate(string title, string description, string cost, SkillTree skillTree, int id, bool interactable, Text text, TreeGenerator treeGenerator, Vector2 position)
 {
     this.bankData         = BankDataScript.Instance;
     this.skillTree        = skillTree;
     this.title.text       = title;
     this.description.text = description;
     this.cost.text        = cost;
     this.id = id;
     this.button.interactable = interactable;
     this.counterText         = text;
     this.treeGenerator       = treeGenerator;
     this.position            = position;
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     bankDataScript = BankDataScript.Instance;
     text.text      = bankDataScript.gems.ToString();
 }