private void CheckWin() { if (Utilites.AllItemsHolded(dices)) { Debug.Log("Win"); GameManager.instance.NextLevel(); } }
// Update is called once per frame private void Update() { if (Utilites.AllItemsHolded(buttons)) { Debug.Log("Win"); GameManager.instance.NextLevel(); } }
private void CheckWin() { var list = new List <ClickBehaviour>(buttons); if (Utilites.AllItemsHolded(list)) { Debug.Log("Win"); GameManager.instance.NextLevel(); } }