void Start() { Cards = GameObject.FindGameObjectWithTag("CardHolder").gameObject; camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <BF_CameraMovement> (); // Button Button btn = GetComponent <Button>(); btn.onClick.AddListener(goBack); }
void Start() { RNGcontroller = GameObject.FindGameObjectWithTag("RNGController").GetComponent <BF_RNGController> (); camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <BF_CameraMovement> (); IC = GameObject.FindGameObjectWithTag("InventoryController").GetComponent <InventoryController> (); IDC = GameObject.FindGameObjectWithTag("ItemDirectoryController").GetComponent <ItemDirectoryController> (); CardPlaces = GameObject.FindGameObjectWithTag("CardPlaces").gameObject; CardHolder = GameObject.FindGameObjectWithTag("CardHolder").gameObject; // Button Button btn = GetComponent <Button>(); btn.onClick.AddListener(OpenAnimation); btn.onClick.AddListener(CreateCards); btn.onClick.AddListener(MoveCamera); }