コード例 #1
0
    IEnumerator Win()
    {
        yield return(new WaitForSeconds(5f));

        PostScore(finalScore);
        api.ApiGet(teamScoreUrl, (result) => getScores(result));
        levelLoader.ChangeGameModeEndOfGame(api, "vleaykensgang", gemiddeldeScore);
    }
コード例 #2
0
    IEnumerator Death()
    {
        deathText.SetActive(true);
        seePictureButton.interactable = false;
        yield return(new WaitForSeconds(5f));

        endScore = 0;
        PostScore(endScore);
        api.ApiGet(teamScoreUrl, (result) => getScores(result));
        levelLoader.ChangeGameModeEndOfGame(api, "mas", gemiddeldeScore);
    }
コード例 #3
0
    IEnumerator Winner()
    {
        animator.SetBool("IsWinning", true);
        runSpeed = 0f;
        yield return(new WaitForSeconds(5));

        PostScore();

        //Deze toevoegen
        api.ApiGet(teamScoreUrl, (result) => getScores(result));
        levelLoader.ChangeGameModeEndOfGame(api, "hetSteen", gemiddeldeScore);
    }
コード例 #4
0
    public void joinGame()
    {
        btnJoinSessie.gameObject.SetActive(false);
        string code = Info.SessieCode.ToString();

        Info.SessieCode = code;
        code            = code.Trim('"');
        Debug.Log(Info.SessieCode + "code");
        string url = "Sessie/toList?code=" + code;

        Debug.Log(url);
        api.ApiGet(url, JoinGameCor);
    }
コード例 #5
0
    // Update is called once per frame
    void Update()
    {
        if (!_updating)
        {
            _updating = true;

            /*
             * Debug.Log(compareResult());
             * int[] result = compareResult();
             * Debug.Log("correct:"+result[0]);
             * Debug.Log("color only:" + result[1]);
             * showResult(result);
             */
            var    url     = "MasterMind/" + Info.TeamId.ToString() + "/Allfound";
            string current = "";
            current += GameObject.Find("c1").GetComponent <color>().SelecctedColorId.ToString();
            current += GameObject.Find("c2").GetComponent <color>().SelecctedColorId.ToString();
            current += GameObject.Find("c3").GetComponent <color>().SelecctedColorId.ToString();
            current += GameObject.Find("c4").GetComponent <color>().SelecctedColorId.ToString();
            Debug.Log(current);
            _api.ApiGet(url, Allfound);
        }
    }
コード例 #6
0
    void Start()
    {
        api = gameObject.AddComponent <APICaller>();
        api.ApiGet(total, getScores);

        counter = 0;
        if (Info.TeamNaam == null)
        {
            TeamNaam.text = "nog geen team --> demo";
        }
        else
        {
            TeamNaam.text = Info.TeamNaam;
        }
    }
コード例 #7
0
 void GetTotalScore(string json)
 {
     Debug.Log("posted " + json);
     api.ApiGet("team/" + Info.TeamId + "/quizscore", GetActionEndGame);
 }
コード例 #8
0
 void deletePlayer()
 {
     api.ApiGet(url, getAnswer);
 }
コード例 #9
0
 // Start is called before the first frame update
 void Start()
 {
     inventory = (EndInventoryDisplay)Instantiate(inventoryDisplayPrefab);
     api       = gameObject.AddComponent <APICaller>();
     api.ApiGet(url, getScores);
 }
コード例 #10
0
 public void foundItem(int id)
 {
     Debug.Log("item found:" + id.ToString());
     foundItems[id] = 1;
     _api.ApiGet("FTD/" + Info.TeamId + "/found?itemId=" + id);
 }
コード例 #11
0
 // Use this for initialization
 void Start()
 {
     inventory = (TeamListDisplay)Instantiate(teamListDisplay);
     api       = gameObject.AddComponent <APICaller>();
     api.ApiGet(url, getPlayers);
 }