// Find a stockpile on the given game object with the given tag public static Stockpile FindStockpileWithLabel(GameObject gObject, string stockpileLabel) { return(LabelledComponentUtility.FindComponentWithLabel <Stockpile>(gObject, stockpileLabel)); }
// Find a game object with the given tag, then find a stockpile on that game object with the given tag public static State FindStateWithLabel(string gObjectTag, string stockpileLabel) { return(LabelledComponentUtility.FindComponentWithLabel <State>(gObjectTag, stockpileLabel)); }