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 AfterUpdate(string json) { if (json == "0") { var timeresult = (DateTime.Now - starttijd).Minutes; float finalResult = 0; if (timeresult < 3) { finalResult = 10; } else if (timeresult < 8) { finalResult = 13 - timeresult; } else if (timeresult < 13) { finalResult = 5 - ((timeresult - 8) * 0.5f); } else { finalResult = 0; } Debug.Log("all found"); levelLoader.ChangeGameModeEndOfGame(_api, "Kathedraal", finalResult); } var result = itemCount - int.Parse(json); score.text = result + "/" + itemCount; Debug.Log(result); StartCoroutine(UpdateDelayed()); }
void backToNav(string json) { var timeresult = (DateTime.Now - starttijd).Minutes; float finalResult = 0; if (timeresult < 3) { finalResult = 10; } else if (timeresult < 8) { finalResult = 13 - timeresult; } else if (timeresult < 13) { finalResult = 5 - ((timeresult - 8) * 0.5f); } else { finalResult = 0; } finalResult = finalResult - (guesses * 0.25f); Debug.Log("all found"); levelLoader.ChangeGameModeEndOfGame(_api, "meir", finalResult); }
// Update is called once per frame void Update() { timePast += Time.deltaTime; timeLeft = timeLimit - timePast; if (timeLeft < 0) { levelLoader.ChangeGameModeEndOfGame(api, "stadswaag", 10); } else { UpdateClock(); } }
IEnumerator CatchObject(GameObject CatchObject) { transform.Translate(Vector3.up, Space.World); this.GetComponent <Rigidbody>().useGravity = false; this.GetComponent <Rigidbody>().velocity = Vector3.zero; Destroy(CatchObject.gameObject); yield return(new WaitForSeconds(1)); this.GetComponent <Rigidbody>().useGravity = true; yield return(new WaitForSeconds(1)); //GameObject.FindGameObjectWithTag("Player").transform.LookAt(this.transform); //GameObject.FindGameObjectWithTag("Player").gameObject.GetComponent<Camera>().fieldOfView = 8.2f; if (count == 0) { count = 1; } levelLoader.ChangeGameModeEndOfGame(api, "grotemarkt", count); }
void backToNav(string json) { var N = new SimpleJSON.JSONObject(); var timeresult = (DateTime.Now - starttijd).Minutes; float finalResult = 0; if (timeresult < 3) { finalResult = 100; } else if (timeresult < 10) { finalResult = 103 - timeresult; } else { finalResult = 85 - ((timeresult - 10) * 0.5f); } finalResult = (finalResult - (guesses * 0.25f)) / 10; Debug.Log("all found"); levelLoader.ChangeGameModeEndOfGame(_api, "havenhuis", finalResult); }
void GetActionEndGame(string json) { Debug.Log("toptalscore" + json); levelLoader.ChangeGameModeEndOfGame(api, "stadsfeestzaal", double.Parse(json)); }