Exemplo n.º 1
0
 string getName(HelperPlant plant)
 {
     if (!plantManager)
     {
         plantManager = PlantsManager.Instance;
     }
     return(JsonManager.Instance.getPlant(plant.type).name + "\n");
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     plantManager = PlantsManager.Instance;
     //init stats
     hudByProperty = new Dictionary <PlantProperty, OneStatHud>();
     foreach (var pair in plantManager.currentResource)
     {
         GameObject oneStatInstance = Instantiate(oneStatPrefab, statsContent.transform);
         OneStatHud oneStatHud      = oneStatInstance.GetComponent <OneStatHud>();
         hudByProperty[pair.Key] = oneStatHud;
     }
     //init plant buttons
     UpdatePlantButtons();
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     plantManager = PlantsManager.Instance;
 }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     plantManager = PlantsManager.Instance;
     gameObject.SetActive(false);
 }
Exemplo n.º 5
0
 void Awake()
 {
     PlantsManagerInstance = this;
 }