void Start() { recipes = Resources.LoadAll <Recipe>("ScriptableObjects/Recipes"); craftingPanel = GetComponent <CraftingPanel>(); inventoryItems = new List <Item>(); craftableItems = new List <Item>(); }
public static void Postfix(CraftingPanel __instance) { using (TextWriter tw = File.CreateText(@"harmony_works.log")) { tw.WriteLine("HarmonyPlugin and Patches initialized!"); tw.Flush(); } }
private void Awake() { sharedInstance = this; int i = 0; foreach (Transform child in transform) { slots[i] = (child.gameObject.GetComponent <InventorySlot>()); i++; } }
private void Awake() { Instance = this; }
protected override void Awake() { base.Awake(); craftingPanel = FindObjectOfType <CraftingPanel>(); }