本文整理汇总了C#中LevelManager.triggerDayEvent方法的典型用法代码示例。如果您正苦于以下问题:C# LevelManager.triggerDayEvent方法的具体用法?C# LevelManager.triggerDayEvent怎么用?C# LevelManager.triggerDayEvent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LevelManager
的用法示例。
在下文中一共展示了LevelManager.triggerDayEvent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnInspectorGUI
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
test = (LevelManager)target;
if (GUILayout.Button("Enter Dracula"))
{
test.triggerDayEvent(HoursManager.DayEventList.DraculaEntering);
}
if (GUILayout.Button("Leave Dracula"))
{
test.triggerDayEvent(HoursManager.DayEventList.DraculaLeaving);
}
if (GUILayout.Button("Food Man"))
{
test.triggerDayEvent(HoursManager.DayEventList.FoodMan);
}
if (GUILayout.Button("Send Letter"))
{
test.triggerDayEvent(HoursManager.DayEventList.LetterSent);
}
if (GUILayout.Button("Mail In"))
{
test.triggerDayEvent(HoursManager.DayEventList.MailManIn);
}
if (GUILayout.Button("Mail Out"))
{
test.triggerDayEvent(HoursManager.DayEventList.MailManOut);
}
if (GUILayout.Button("GoNight"))
{
test.testLights(HoursManager.DayTime.Night);
}
if (GUILayout.Button("GoDay"))
{
test.testLights(HoursManager.DayTime.Day);
}
if (GUILayout.Button("Respawn"))
{
LevelManager.GAMESTATE = GameEventManager.GameState.MainMenu;
GameEventManager.TriggerRespawn("test");
}
if (GUILayout.Button("GameOverHunger"))
{
GameEventManager.TriggerGameOver(LevelManager.DeathList.Test);
}
if (GUILayout.Button("GameOverExhaust"))
{
GameEventManager.TriggerGameOver(LevelManager.DeathList.Test);
}
if (GUILayout.Button("GameOver"))
{
GameEventManager.TriggerGameOver(LevelManager.DeathList.Test);
}
if (GUILayout.Button("Victory"))
{
GameEventManager.TriggerEndGame("Test");
}
if (GUILayout.Button("Bed colls"))
{
// changeBedCollide();
}
}