Exemplo n.º 1
0
    private void Start()
    {
        burgerId = ManagementId.GetburgerId; //マネージャーからID受け取り

        //burgerId = "burger0"; // かり

        BurgerData burgerdata = BurgerData.GetData(burgerId);
    }
    private void Start()
    {
        burgerId = ManagementId.GetburgerId; //マネージャーからID受け取り

        BurgerData data = BurgerData.GetData(burgerId);

        partsNum = data.foodPartsId.Count;

        delayTime = Constant.GameMain.NextDelayTime;
    }
Exemplo n.º 3
0
    void Start()
    {
        burgerId = ManagementId.GetburgerId; //マネージャーからID受け取り

        //burgerId = "burger0";

        burgerData = BurgerData.GetData(burgerId);

        foodId = burgerData.foodPartsId;

        SetCharacter();
    }
Exemplo n.º 4
0
    IEnumerator CreateWindow()
    {
        yield return(new WaitForSeconds(1.0f));

        goalPanel.SetActive(true);

        BurgerData data = BurgerData.GetData(ManagementId.GetburgerId);

        goalBurgerImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.BurgerImage + data.id);

        goalBurgerText.text = data.burgerName;

        //Debug.Log(ManagementId.GetburgerId);
    }
Exemplo n.º 5
0
    IEnumerator CreateCharacter()
    {
        BurgerData data = BurgerData.GetData(burgerId);

        List <int> foods = data.foodPartsId;

        for (int i = 1; i < foods.Count; i++)
        {
            var obj = Instantiate(Resources.Load <GameObject>(Constant.Path.Resources.GameMainPrefabs + "WaitCharacterFrame"));
            obj.GetComponent <GenerateCharacterImage>().SetFoodPartsId(Constant.ScriptableName.FoodPartsData + foods[i]);
            obj.transform.SetParent(waitCharacterContent.transform);
            obj.transform.localPosition = Vector3.one; //背面にいかないように
            obj.transform.localScale    = Vector3.one;
        }

        yield return(0);
    }
    private void Start()
    {
        burgerId = ManagementId.GetburgerId; //マネージャーからID受け取り

        BurgerData data = BurgerData.GetData(burgerId);

        if (PlayerPrefs.GetInt("isGetBurger" + data.id) == 0)
        {
            newIcon.SetActive(true);
        }

        PlayerPrefs.SetInt("isGetBurger" + data.id, 1);

        var totalCoin = PlayerPrefs.GetInt(Key.Common.TotalCoin);

        PlayerPrefs.SetInt(Key.Common.TotalCoin, totalCoin + data.getCoinNum);
    }
Exemplo n.º 7
0
    void CreateMenu(string id)
    {
        BurgerData data = BurgerData.GetData(id);

        var num = data.id;

        resultBurgerImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.BurgerImage + num);

        var level = data.difficulty;

        resultLevelImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.LevelImage + level);

        menuBurgerImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.BurgerImage + num);

        menuNameImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.ResuleBurgerName + num);

        var getCoin = data.getCoinNum;

        menuGetCoin.text = getCoin.ToString();

        menuTotalCoin.text = PlayerPrefs.GetInt(Key.Common.TotalCoin).ToString();
    }
Exemplo n.º 8
0
    void CreateMenuWindow(string id)
    {
        BurgerData data = BurgerData.GetData(id);

        var num = data.id;

        if (PlayerPrefs.GetInt("isGetBurger" + num) != 0)
        {
            burgerImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.BurgerImage + num);

            levelImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.LevelImage + data.difficulty);

            nameImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.BookBurgerName + num);

            bookImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.BookImage + num);

            memoImage.sprite = Resources.Load <Sprite>(Constant.Path.Resources.ExplanationImage + num);

            coinText.text = data.getCoinNum.ToString();

            menuWindow.SetActive(true);
        }
    }