Пример #1
0
 void loadData()
 {
     gameManager = (GameObject)AssetDatabase.LoadAssetAtPath("Assets/UnitZ/Game/GameManager.prefab", typeof(GameObject));
     if (gameManager)
     {
         itemCraftManager = gameManager.GetComponent <ItemCrafterManager> ();
     }
 }
Пример #2
0
 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);
 }