How can I access ShopMenuOpener via Script?

Fjord

New member
I would like to call the Open() Method from the ShopMenuOpener. By now i can call it when I put the ShopMenuOpener, Shop and Shop Inventory on the same GameObject with a Button, where I can easily access Open() through the Inspector. But now I want the Button made in Runtime and building the connections to the ShopMenuOpener via script. But I cannot get the ShopMenuOpener-Script through GetComponent<>(). Why can't I find it? And how can i accomplish it? Thanks for your help!
 
Thanks for the quick help! :) I figured it out. Indeed i needed some more knowledge about how to use Assembly References and namespaces.
 
Top