Esempio n. 1
0
    private void RemoveOnPickup(PickableObject obj)
    {
        if (obj.GetType() == typeof(PickableObject))
        {
            //PickableObjects.Remove(obj);
            PickablePickedObjectIDs.Add(obj.ID);

            if (PickableObjects.Count == PickablePickedObjectIDs.Count)
            {
                Finish();
            }
        }
        else if (obj.GetType() == typeof(PickableUsableObject))
        {
            PickableUsableObjects.Remove((PickableUsableObject)obj);
        }
    }