コード例 #1
0
    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);
        }
    }
コード例 #2
0
 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();
     }
 }