// Update is called once per frame void Update() { int nbWins = MatchReferee.GetNbWins((int)m_input.m_nbPlayer - 1); if (nbWins == 0) { return; } foreach (GameObject go in m_winObjs) { go.SetActive(false); } if (nbWins <= m_winObjs.Length) { m_winObjs[nbWins - 1].SetActive(true); } }
public IHttpActionResult MatchReferee([FromBody] MatchReferee model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } /* * var clas = new Class1(); * var response = clas.GetMatchesForReferee(int.Parse(model.Id), int.Parse(model.BrojUtakmica)); * var result = new MatchRefereeResponse(); * result.listResponse = response; */ var matchProcessor = new MatchProcessor(); var response = matchProcessor.RetrieveMatchesforReferee(int.Parse(model.Id), int.Parse(model.BrojUtakmica)); var result = new MatchRefereeResponse(); result.listResponse = response; return(Ok(result)); }
// INTERNAL MEMBERS void Awake() { Debug.Assert(instance == null, this.gameObject.name + " - MatchReferee : must be unique!"); instance = this; }