本文整理汇总了C#中State.LoadContent方法的典型用法代码示例。如果您正苦于以下问题:C# State.LoadContent方法的具体用法?C# State.LoadContent怎么用?C# State.LoadContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类State
的用法示例。
在下文中一共展示了State.LoadContent方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadState
public static void LoadState(State state)
{
m_state = state;
if (m_assetHandler != null)
{
m_state.LoadContent(m_assetHandler);
m_state.Draw(m_target);
}
}
示例2: ReplayGameHandler
void ReplayGameHandler(object sender, EventArgs e)
{
UnhookHomeStateEvents();
GlobalState = new GameState();
GlobalState.Initialize(null);
GlobalState.LoadContent(Content);
HookGameStateEvents();
}
示例3: JoinGameHandler
void JoinGameHandler(object sender, EventArgs e)
{
AvailableNetworkSessionCollection sessions = NetworkSession.Find(NetworkSessionType.SystemLink, 2, null);
if (sessions.Count < 1)
return;
Session = NetworkSession.Join(sessions[0]);
if (Session != null)
{
HookSessionEvents();
UnhookHomeStateEvents();
GlobalState = new LobbyState();
GlobalState.Initialize(null);
GlobalState.LoadContent(Content);
HookLobbyStateEvents();
}
}
示例4: CreateGameHandler
void CreateGameHandler(object sender, EventArgs e)
{
try
{
Session = NetworkSession.Create(NetworkSessionType.SystemLink, 2, 2);
UnhookHomeStateEvents();
GlobalState = new LobbyState();
GlobalState.Initialize(null);
GlobalState.LoadContent(Content);
HookLobbyStateEvents();
HookSessionEvents();
}
catch (Exception exception)
{
}
}