コード例 #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));
 }
コード例 #2
0
ファイル: State.cs プロジェクト: BenjiBoy926/Solymnus
 // 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));
 }