disabled scripts

hey friends I have two buttons create and join. Both button’s on click event I move to next scene. but in next scene I have two scripts networkmanager and networkclient now if I press create button I want to call only networkmanger not networkclient .so how I disabled networkclient script.?
and join I want to disabled networkmanger.?
how can I know which button is been pressed?
pls help.

The only way to store data between scenes is to use static variables somewhere in your code, or flag a GameObject object with DontDestroyOnLoad. Either would be a valid way to pass the information you need to a new scene.

Edit: If you find yourself sending more than just a few pieces of data between scenes, you may want to look into creating a Singleton that stores this state data for you.