Example #1
0
 // 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));
 }
Example #2
0
 // 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));
 }