public static BaseNode NodeQuitConfirm(Vector2 pos) { string title = "QUIT CONFIRM"; string[] options = { "CANCEL", "QUIT" }; float width = 180; MenuNode n = ScriptableObject.CreateInstance <MenuNode>(); n.init(pos, width, title, options); n.type = BaseNode.nodeType.QuitConfirm; AddObjectToAssetDatabase(n); return(n); }
public static BaseNode NodeSinglePlayer(Vector2 pos) { string title = "SINGLE PLAYER"; string[] options = { "CANCEL", "START GAME" }; float width = 180; MenuNode n = ScriptableObject.CreateInstance <MenuNode>(); n.init(pos, width, title, options); n.type = BaseNode.nodeType.SinglePlayer; AddObjectToAssetDatabase(n); return(n); }
public static BaseNode NodeMainMenu(Vector2 pos) { string title = "MAIN MENU"; string[] options = { "SINGLEPLAYER", "MULTIPLAYER", "OPTIONS", "QUIT" }; float width = 220; MenuNode n = ScriptableObject.CreateInstance <MenuNode>(); n.init(pos, width, title, options); n.type = BaseNode.nodeType.MainMenu; AddObjectToAssetDatabase(n); return(n); }