C# Class MainMenuDirector, PaperCowboys

Main menu management director. Pretty much everything that goes on in the main menu is controlled from here.
Inheritance: MonoBehaviour
Datei anzeigen Open project: Gamieon/PaperCowboys

Public Properties

Property Type Description
firstLevelName string
indieDBIcon UnityEngine.Texture2D
instructionTexture UnityEngine.Texture2D
mainMenuSong UnityEngine.AudioClip
menuButtonStyle GUIStyle
menuOptionsStyle GUIStyle
titleStyle GUIStyle
twitterIcon UnityEngine.Texture2D

Public Methods

Method Description
Awake ( ) : void
OnGUI ( ) : void
OnServerInitialized ( ) : void

Called on the server whenever a Network.InitializeServer was invoked and has completed.

RenderGameSearchMenu ( ) : void

Renders the game search menu.

RenderHostGameMenu ( ) : void

Renders the 'host game' menu.

RenderMainMenu ( ) : void

Renders the main menu.

RenderOptionsMenu ( ) : void

Renders the options menu.

RenderSocialLinks ( ) : void

Renders the social links on the lower right-hand corner of the screen

Update ( ) : void
uLink_OnConnectedToServer ( ) : void

Called on the client when you have successfully connected to a server.

uLink_OnServerInitialized ( ) : void

Called on the server whenever a Network.InitializeServer was invoked and has completed.

Private Methods

Method Description
MoveToGameScene ( ) : IEnumerator

Called for a player creating a room to go to start the game once the room has been created.

OnConnectedToPhoton ( ) : void
OnCreatedRoom ( ) : void
OnDisconnectedFromPhoton ( ) : void
OnFailedToConnectToPhoton ( object parameters ) : void
OnJoinedRoom ( ) : void
OnPhotonCreateRoomFailed ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

OnServerInitialized() public method

Called on the server whenever a Network.InitializeServer was invoked and has completed.
public OnServerInitialized ( ) : void
return void

RenderGameSearchMenu() public method

Renders the game search menu.
public RenderGameSearchMenu ( ) : void
return void

RenderHostGameMenu() public method

Renders the 'host game' menu.
public RenderHostGameMenu ( ) : void
return void

RenderMainMenu() public method

Renders the main menu.
public RenderMainMenu ( ) : void
return void

RenderOptionsMenu() public method

Renders the options menu.
public RenderOptionsMenu ( ) : void
return void

RenderSocialLinks() public method

Renders the social links on the lower right-hand corner of the screen
public RenderSocialLinks ( ) : void
return void

Update() public method

public Update ( ) : void
return void

uLink_OnConnectedToServer() public method

Called on the client when you have successfully connected to a server.
public uLink_OnConnectedToServer ( ) : void
return void

uLink_OnServerInitialized() public method

Called on the server whenever a Network.InitializeServer was invoked and has completed.
public uLink_OnServerInitialized ( ) : void
return void

Property Details

firstLevelName public_oe property

public string firstLevelName
return string

indieDBIcon public_oe property

public Texture2D,UnityEngine indieDBIcon
return UnityEngine.Texture2D

instructionTexture public_oe property

public Texture2D,UnityEngine instructionTexture
return UnityEngine.Texture2D

mainMenuSong public_oe property

public AudioClip,UnityEngine mainMenuSong
return UnityEngine.AudioClip

menuButtonStyle public_oe property

public GUIStyle menuButtonStyle
return GUIStyle

menuOptionsStyle public_oe property

public GUIStyle menuOptionsStyle
return GUIStyle

titleStyle public_oe property

public GUIStyle titleStyle
return GUIStyle

twitterIcon public_oe property

public Texture2D,UnityEngine twitterIcon
return UnityEngine.Texture2D