示例#1
0
    void Start()
    {
        /*
         * ReadyManager readyManager = GameObject.Find("ReadyManager").GetComponent<ReadyManager>();
         * powerCount = readyManager.GetPowerItemCount();
         * bombCount = readyManager.GetBombItemCount();
         */
        powerCount = PlayerPrefs.GetInt("PowerItemCount", 0);
        bombCount  = PlayerPrefs.GetInt("BombItemCount", 0);

        PlayerPrefs.SetInt("PowerItemCount", 0);
        PlayerPrefs.SetInt("BombItemCount", 0);

        uiManager.SetItemCountText(ItemType.POWER, powerCount);
        uiManager.SetItemCountText(ItemType.BOMB, bombCount);
        //Destroy(GameObject.Find("ReadyManager"));

        DefSettingIO.getInstance.GetData("PlusLife", out plusLife);
        DefSettingIO.getInstance.GetData("FeverTimeCount", out feverTimeCount);
        DefSettingIO.getInstance.GetData("PlusPower", out plusPower);
        DefSettingIO.getInstance.GetData("FeverPower", out feverPower);

        itemPool.Create();
        itemPool.AddItem();
    }