public void spawnprefab() { if (Game.Current.RemainingPizzas.Count == 0 || Game.Current.ChattedWithPizzas.Count == 6) { SceneChanger.GoToProfile(); } else { GameObject elcositoquespawnee; elcositoquespawnee = Instantiate(Prefab, transform.position, transform.rotation, CanvasTransform); } }
private void Update() { // if (Input.GetKeyDown("1")) // SceneChanger.GoToStartMenu(); if (Input.GetKeyDown("1")) { SceneChanger.GoToSwiper(); } // else if (Input.GetKeyDown("2")) // SceneChanger.GoToChat(); else if (Input.GetKeyDown("2")) { SceneChanger.GoToProfile(); } }