private void CloseCraftingTable() { mCraftingWindow?.Close(); mCraftingWindow = null; Globals.InCraft = false; PacketSender.SendCloseCrafting(); }
private void Awake() { player = FindObjectOfType <Player>(); followCamera = FindObjectOfType <CameraController>(); craftWindow = player.craftWindow; plrInter = player.plrInter; }
public void Init(CraftingWindow _window, ItemData _data) { Data = _data; Window = _window; ItemImage.sprite = Data.Sprite; ItemButton.onClick.AddListener(delegate { OnClicked(); }); }
// Use this for initialization void Start() { craftingWindow = GameObject.FindGameObjectWithTag("CraftingWindow").GetComponent <CraftingWindow>(); itemDatabase = GameObject.FindGameObjectWithTag("ItemDatabase").GetComponent <ItemDatabase>(); inventory = GameObject.FindGameObjectWithTag("Inventory").GetComponent <Inventory>(); requirementScrollList = GameObject.FindGameObjectWithTag("RequirementScrollList").GetComponent <RequirementScrollList>(); RefreshDisplay(); }
public void OpenCraftingTable() { if (mCraftingWindow != null) { mCraftingWindow.Close(); } mCraftingWindow = new CraftingWindow(GameCanvas); mShouldOpenCraftingTable = false; Globals.InCraft = true; }
private void Awake() { craftWindow = FindObjectOfType <CraftingWindow>(); }
private void Awake() { plr = FindObjectOfType <Player>(); craftWinow = FindObjectOfType <CraftingWindow>(); }
// Use this for initialization void Start() { craftingWindow = GameObject.FindGameObjectWithTag("CraftingWindow").GetComponent <CraftingWindow>(); reqScrollList = GameObject.FindGameObjectWithTag("RequirementScrollList").GetComponent <RequirementScrollList>(); buttonComponent.onClick.AddListener(HandleClick); }
private void CloseCraftingTable() { mCraftingWindow?.Close(); mCraftingWindow = null; Globals.InCraft = false; }