static void InitializeTemplate( ) { foreach (GameObject go in Selection.gameObjects) { WorldItem wi = null; if (go.HasComponent <WorldItem> (out wi)) { Debug.Log("Initializing template in " + wi.name); wi.InitializeTemplate(); } } }
static void InitializeTemplate( ) { foreach (GameObject go in Selection.gameObjects) { WorldItem wi = null; if (go.HasComponent <WorldItem> (out wi)) { Debug.Log("Initializing template in " + wi.name); wi.InitializeTemplate(); } } }