Two questions:
I am writing a multiplayer based game.
All GameObject should be instantiated from in my GameController script.
How i can call a funktion of a script atached to a GameObject from another GameObject for example a skript which trigger if a key is pressed in my player prefab ?
Also this should only be executed on the server so i neet to check:
if (network.isServer)
right ?
Thanks and greetings
Teiwaz