예제 #1
0
        /// <summary>
        /// Adds snow to the bucket's snow level and removes it from the manager's list
        /// </summary>
        /// <param name="snow">The snow to despawn</param>
        private void AddSnow(DraggableSprite snow)
        {
            levelOfSnow++;
            manager.RemoveSnowFromList(snow);

            if (BucketIsFull)
            {
                bucketImage.sprite = manager.GetBucketSprite(BucketState.SNOWY);
            }
        }
예제 #2
0
 /// <summary>
 /// Removes a snow draggable from the list
 /// </summary>
 /// <param name="toRemove">The draggable to remove</param>
 public void RemoveSnowFromList(DraggableSprite toRemove)
 {
     dropSnowInBucket_sfx.start();
     spawnedDraggables.Remove(toRemove);
     Destroy(toRemove.gameObject);
 }