protected void OnDestroy() { attackField = null; vitalityField = null; armorField = null; speedField = null; enduranceField = null; sneakField = null; attackSlider = null; vitalitySlider = null; armorSlider = null; speedSlider = null; enduranceSlider = null; sneakSlider = null; selectedComputer = null; animalTilePrefab = null; animalListContent = null; }
protected void Start() { InteractComputer[] computers = FindObjectsOfType <InteractComputer> (); foreach (InteractComputer comp in computers) { if (comp.currentlyActive) { selectedComputer = comp; } } // Spawn in current tiles if (AnimalStorage.instance.animalInfoDictionary != null) { foreach (KeyValuePair <int, AnimalStoredInfo> kvp in AnimalStorage.instance.animalInfoDictionary) { CreateAnimalTile(kvp.Value, false); } } }