本文整理汇总了C#中Movement.onMenuStart方法的典型用法代码示例。如果您正苦于以下问题:C# Movement.onMenuStart方法的具体用法?C# Movement.onMenuStart怎么用?C# Movement.onMenuStart使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Movement
的用法示例。
在下文中一共展示了Movement.onMenuStart方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: backToMenu
public void backToMenu()
{
movement = FindObjectOfType<Movement>().GetComponent<Movement>();
movement.onMenuStart();
esctomenupanel.SetActive(true);
esctomenu = true;
changeState(1, true);
}
示例2: Update
// Update is called once per frame
void Update()
{
if (donewithintro)
{
pct1 = PilloController.GetSensor(Pillo.PilloID.Pillo1);
pct2 = PilloController.GetSensor(Pillo.PilloID.Pillo2);
checkForControlSwitch();
if (pickupspawning.checkForDone())
{
if (mode == 1)
{
enableVictoryScreen();
}
if (mode == 2)
{
if (nhs.finished == true)
{
enableVictoryScreen();
}
movement = FindObjectOfType<Movement>().GetComponent<Movement>();
movement.onMenuStart();
tt.stopCounting();
highscorepanel.SetActive(true);
highscorepanel.GetComponentInChildren<Text>().text = tt.returnTimeInString();
nhs.ended = true;
ca.goalsAvailable = false;
compassBg.SetActive(false);
}
//enableVictoryScreen();
//firstmenupress = true;
}
if (mode == 2 && !inmenu)
{
timetext.GetComponent<Text>().text = "Time: " + tt.returnTimeInString();
}
if (inmenu || intutorial || inoptions || inquit || esctomenu || invictory)
{
checkForPresses();
}
if (!inmenu && pillocontrol && !intutorial && !inoptions)
{
updateSliderValues();
rotateSliderHandles();
}
if (!inmenu)
{
if (!esctomenu)
{
checkForQuit();
}
if (!inquit)
{
checkForMenu();
}
}
}
}
示例3: quitGame
public void quitGame()
{
movement = FindObjectOfType<Movement>().GetComponent<Movement>();
movement.onMenuStart();
inquit = true;
//inmenu = false;
quitpanel.SetActive(true);
//currentselectedbutton = null;
changeState(1, true);
}
示例4: enableVictoryScreen
public void enableVictoryScreen()
{
ca.goalsAvailable = false;
movement = FindObjectOfType<Movement>().GetComponent<Movement>();
movement.onMenuStart();
invictory = true;
victorypanel.SetActive(true);
}