How can I make my button close the current program (The main game) and open another program?
Like Call of Duty 4 PC Version - It closes the single player menu and opens up the multiplayer menu
- Felipe
How can I make my button close the current program (The main game) and open another program?
Like Call of Duty 4 PC Version - It closes the single player menu and opens up the multiplayer menu
Well Felipe is asking about starting external application like notepad, calc or others.
try this topic… think for a moment … and read again ![]()
hope that help
regards
letmeknowit
you could try this:
function OnGUI () {
if (GUI.Button (Rect(0, 0, 20, 20) {
Application.LoadLevel("WhatEverYouCalledThisScene");
}
}
I believe the scene before you load a new one is inactive to save memory (not 100% sure of that).
what's the problem with this script?
– adrenak