IEnumerator Win() { yield return(new WaitForSeconds(5f)); PostScore(finalScore); api.ApiGet(teamScoreUrl, (result) => getScores(result)); levelLoader.ChangeGameModeEndOfGame(api, "vleaykensgang", gemiddeldeScore); }
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); }
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); }
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); }
// 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); } }
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; } }
void GetTotalScore(string json) { Debug.Log("posted " + json); api.ApiGet("team/" + Info.TeamId + "/quizscore", GetActionEndGame); }
void deletePlayer() { api.ApiGet(url, getAnswer); }
// Start is called before the first frame update void Start() { inventory = (EndInventoryDisplay)Instantiate(inventoryDisplayPrefab); api = gameObject.AddComponent <APICaller>(); api.ApiGet(url, getScores); }
public void foundItem(int id) { Debug.Log("item found:" + id.ToString()); foundItems[id] = 1; _api.ApiGet("FTD/" + Info.TeamId + "/found?itemId=" + id); }
// Use this for initialization void Start() { inventory = (TeamListDisplay)Instantiate(teamListDisplay); api = gameObject.AddComponent <APICaller>(); api.ApiGet(url, getPlayers); }