本文整理汇总了C#中Place.Search方法的典型用法代码示例。如果您正苦于以下问题:C# Place.Search方法的具体用法?C# Place.Search怎么用?C# Place.Search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Place
的用法示例。
在下文中一共展示了Place.Search方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AssignNextObjective
public void AssignNextObjective()
{
_currentPlaceToFind.LeavePlace ();
_lastFoundPlace = _currentPlaceToFind;
_currentPlaceIndex ++;
if (_currentPlaceIndex >= Places.Length) {
GameWin ();
Invoke("LeaveLevel", 4.0f);
}
else {
_currentPlaceToFind = Places [_currentPlaceIndex];
UIManager.Instance.ResumeGame (_currentPlaceToFind.CluePhoto);
_currentPlaceToFind.Search();
}
}
示例2: StartGame
IEnumerator StartGame()
{
_inputLocked = true;
_gameStarted = false;
_gameEnded = false;
_gameLost = false;
_gamePaused = true;
UIManager.Instance.StartGameUI();
Cam.AssignHolder (GeneralPanFirstCameraHolder);
_timeToStart = MaxTimeToMemorize;
yield return new WaitForSeconds (MaxTimeToMemorize - TimeBeforeShow);
UIManager.Instance.ShowTimeToStart ();
yield return new WaitForSeconds (TimeBeforeShow);
UIManager.Instance.HideTimeToStart ();
Cam.AssignHolder (MainCharacterCameraHolder);
_timeLeft = StartTime;
UIManager.Instance.ShowFadeOutText ("3", 1.0f, 0.5f);
yield return new WaitForSeconds (1.0f);
UIManager.Instance.ShowFadeOutText ("2", 1.0f, 0.8f);
yield return new WaitForSeconds (1.0f);
UIManager.Instance.ShowFadeOutText ("1", 1.0f, 1.0f);
yield return new WaitForSeconds (1.0f);
UIManager.Instance.ShowFadeOutText ("¡VAMOS!", 2.0f, 1.5f);
yield return new WaitForSeconds (1.0f);
_gameStarted = true;
_currentPlaceIndex = 0;
_currentPlaceToFind = Places [_currentPlaceIndex]; // first one!
UIManager.Instance.ResumeGame (_currentPlaceToFind.CluePhoto);
_currentPlaceToFind.Search ();
ResumeGame ();
}