当前位置: 首页>>代码示例>>C#>>正文


C# Game.getCollectionStatus方法代码示例

本文整理汇总了C#中Game.getCollectionStatus方法的典型用法代码示例。如果您正苦于以下问题:C# Game.getCollectionStatus方法的具体用法?C# Game.getCollectionStatus怎么用?C# Game.getCollectionStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Game的用法示例。


在下文中一共展示了Game.getCollectionStatus方法的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);
     }
 }
开发者ID:moodymood,项目名称:Demo1,代码行数:11,代码来源:UpdateMenu.cs

示例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 ();
    }
开发者ID:moodymood,项目名称:EgyptGameAR-Demo,代码行数:11,代码来源:UpdateClue.cs

示例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";
        }
    }
开发者ID:moodymood,项目名称:Demo1,代码行数:12,代码来源:AppOnBackCustom.cs

示例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;
    }
开发者ID:moodymood,项目名称:EgyptGameAR-Demo,代码行数:22,代码来源:UpdateMenu.cs

示例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";
        }
    }
开发者ID:moodymood,项目名称:EgyptGameAR-Demo,代码行数:14,代码来源:AppOnBackCustom.cs

示例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;
    }
开发者ID:moodymood,项目名称:EgyptGameAR-Demo,代码行数:23,代码来源:UpdateIntroEnd.cs


注:本文中的Game.getCollectionStatus方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。