Esempio n. 1
0
        public override void CollectLoot()
        {
            if (gugAmount > 0)
            {
                score.AddGugs(gugAmount);
                if (bDebug)
                {
                    Debug.Log(score.gugCount.value);
                }
            }
            else if (collectibleType != null)
            {
                GetComponent <Lootable>().isUniqueAndCollected.SetValue(true);
                collection.SetCollect(score.gameLevel, collectibleType, true);
                if (bDebug)
                {
                    for (int i = 0; i < collection.collectibleTypes.Length; i++)
                    {
                        Debug.Log(collection.GetCollected(score.gameLevel, collection.collectibleTypes[i]));
                    }
                }
            }

            somethingCollected.Raise();
        }