Exemple #1
0
    /// <summary>
    /// 得到某些奖励
    /// </summary>
    /// <param name="ui"></param>
    public void OnGot( )
    {
        PlayerData.GetInstance().intValues["exp"]  += exp;
        PlayerData.GetInstance().intValues["gold"] += gold;
        BagManager bm = BagManager.GetInstance();

        for (int i = 0; i < items.Length; i++)
        {
            bm.PutIntoBag(items[i], counts[i]);
        }
    }