void loadData() { gameManager = (GameObject)AssetDatabase.LoadAssetAtPath("Assets/UnitZ/Game/GameManager.prefab", typeof(GameObject)); if (gameManager) { itemCraftManager = gameManager.GetComponent <ItemCrafterManager> (); } }
void Start() { page = 0; inventory = this.GetComponent<CharacterInventory> (); crafterManager = (ItemCrafterManager)GameObject.FindObjectOfType (typeof(ItemCrafterManager)); StyleManager Styles = (StyleManager)GameObject.FindObjectOfType (typeof(StyleManager)); if(!Skin && Styles) Skin = Styles.GetSkin(0); }