// Allows Custom techs to be implemented. public void AddCustomTech(string previousTechName) { tree.techTree.TryGetValue(previousTechName, out previous); if (previous == null) return; // Resize the array to allow new tech. Tech[] temp = new Tech[next.Length - 1]; next.CopyTo(temp, 0); next = new Tech[temp.Length + 1]; temp.CopyTo(next, 0); next[next.Length-1] = this; }