C# Class MainMenuDirector, PaperCowboys

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

Méthodes publiques

Свойство Type Description
firstLevelName string
indieDBIcon UnityEngine.Texture2D
instructionTexture UnityEngine.Texture2D
mainMenuSong UnityEngine.AudioClip
menuButtonStyle GUIStyle
menuOptionsStyle GUIStyle
titleStyle GUIStyle
twitterIcon UnityEngine.Texture2D

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Awake ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

OnServerInitialized() public méthode

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

RenderGameSearchMenu() public méthode

Renders the game search menu.
public RenderGameSearchMenu ( ) : void
Résultat void

RenderHostGameMenu() public méthode

Renders the 'host game' menu.
public RenderHostGameMenu ( ) : void
Résultat void

RenderMainMenu() public méthode

Renders the main menu.
public RenderMainMenu ( ) : void
Résultat void

RenderOptionsMenu() public méthode

Renders the options menu.
public RenderOptionsMenu ( ) : void
Résultat void

RenderSocialLinks() public méthode

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

Update() public méthode

public Update ( ) : void
Résultat void

uLink_OnConnectedToServer() public méthode

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

uLink_OnServerInitialized() public méthode

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

Property Details

firstLevelName public_oe property

public string firstLevelName
Résultat string

indieDBIcon public_oe property

public Texture2D,UnityEngine indieDBIcon
Résultat UnityEngine.Texture2D

instructionTexture public_oe property

public Texture2D,UnityEngine instructionTexture
Résultat UnityEngine.Texture2D

mainMenuSong public_oe property

public AudioClip,UnityEngine mainMenuSong
Résultat UnityEngine.AudioClip

menuButtonStyle public_oe property

public GUIStyle menuButtonStyle
Résultat GUIStyle

menuOptionsStyle public_oe property

public GUIStyle menuOptionsStyle
Résultat GUIStyle

titleStyle public_oe property

public GUIStyle titleStyle
Résultat GUIStyle

twitterIcon public_oe property

public Texture2D,UnityEngine twitterIcon
Résultat UnityEngine.Texture2D