// Start is called before the first frame update void Start() { fightSystem = GameObject.Find("FightSystem").GetComponent <FightSystem>(); thisReceiver = this.GetComponent <UnityCharacter>().Character; unityInventory = GameObject.Find("Canvas").transform.Find("Inventory").GetComponent <UnityInventory>(); unitySpellbook = GameObject.Find("Canvas").transform.Find("SpellBook").GetComponent <UnitySpellbook>(); message = GameObject.Find("Canvas").transform.Find("MessageBox").GetComponent <ChangeMessage>(); dialogSystem = GameObject.Find("DialogSystem").GetComponent <DialogSystem>(); questSystem = GameObject.Find("QuestSystem").GetComponent <QuestSystem>(); }
private void Awake() { button = this.GetComponent <Button>(); button.onClick.AddListener(TaskOnClick); inventory = this.transform.parent.parent.Find("Inventory").GetComponent <UnityInventory>(); }