本文整理汇总了C#中Game.getCollection方法的典型用法代码示例。如果您正苦于以下问题:C# Game.getCollection方法的具体用法?C# Game.getCollection怎么用?C# Game.getCollection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Game
的用法示例。
在下文中一共展示了Game.getCollection方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
// Use this for initialization
void Start()
{
game = SharedInfo.getCurrGame ();
won = (game.getCollection ().getTotal () == game.getCollectionStatus ().getTotalCollected ());
if (won) {
GameObject.Find ("GameTitle").GetComponentInChildren<Text> ().text = "You Won!";
Transform containerTransform = GameObject.Find("Container").gameObject.transform;
effect = (Transform)Instantiate (particlesEffect, containerTransform.position, containerTransform.rotation);
}
}
示例2: Start
// Use this for initialization
void Start()
{
game = SharedInfo.getCurrGame ();
artefactId = game.getCollectionStatus ().getNextToCollect ();
nextArtefactToCollect = game.getCollection ().getArtefactById (artefactId);
GameObject.Find ("CluePanel").GetComponentsInChildren<Text>()[0].text = getTitleFromNumber(nextArtefactToCollect.getId() + 1);
GameObject.Find ("CluePanel").GetComponentsInChildren<Text>()[1].text = nextArtefactToCollect.getClue ();
}
示例3: Start
void Start()
{
game = SharedInfo.getCurrGame ();
won = (game.getCollection ().getTotal () == game.getCollectionStatus ().getTotalCollected ());
isJustCollected = game.isArtefactJustCollected ();
if(isJustCollected && !won){
levelToGo = "CameraFinder";
}else{
levelToGo = "Collection";
}
}
示例4: Start
// Use this for initialization
void Start()
{
game = SharedInfo.getCurrGame ();
won = (game.getCollection ().getTotal () == game.getCollectionStatus ().getTotalCollected ());
string statusMessage = game.getCollectionStatus().getTotalCollected() + " out of " + game.getCollection().getTotal() + "\n artefacts collected";
string wonMessage = "";
string continueButtonText = "Continue";
if (won) {
// Update status message
wonMessage = "You Won!";
continueButtonText = "Go to Collection";
// Create particle effect
Transform containerTransform = GameObject.Find("Container").gameObject.transform;
effect = (Transform)Instantiate (particlesEffect, containerTransform.position, containerTransform.rotation);
}
GameObject.Find ("GameStatus").GetComponentInChildren<Text> ().text = statusMessage;
GameObject.Find ("WonMessage").GetComponentInChildren<Text> ().text = wonMessage;
GameObject.Find ("ContinueButton").GetComponentInChildren<Text> ().text = continueButtonText;
}
示例5: Start
void Start()
{
game = SharedInfo.getCurrGame ();
won = (game.getCollection ().getTotal () == game.getCollectionStatus ().getTotalCollected ());
isJustCollected = game.isArtefactJustCollected ();
if(isJustCollected && !won){
levelToGo = "Clue";
if(game.getCurrentArtefact().getId() == 0) // Only for Anubis
SharedInfo.getSceneStatus().setUnvisited ("AfterCollection");
}else{
levelToGo = "Collection";
}
}
示例6: Start
// Use this for initialization
void Start()
{
string currText;
string currButton;
string currTitle;
game = SharedInfo.getCurrGame ();
if (game.getCollectionStatus ().getTotalCollected () != game.getCollection ().getTotal ()){
currText = introText;
currButton = introButton;
currTitle = introTitle;
}else {
currText = endText;
currButton = endButton;
currTitle = endTitle;
}
GameObject.Find ("IntroEndPanel").GetComponentsInChildren<Text>()[0].text = currTitle;
GameObject.Find ("IntroEndPanel").GetComponentsInChildren<Text>()[1].text = currText;
GameObject.Find ("IntroEndPanel").GetComponentInChildren<Button>().GetComponentInChildren<Text>().text = currButton;
}