Beispiel #1
0
    IEnumerator checkItemPickedUp()
    {
        bool pickedUp = GameUtilities.getPickedUp(BaseSaver.getMap(), transform.position);

        //Debug.Log("Item: " + name);
        //Debug.Log("Picked Up: " + pickedUp.ToString());
        if (pickedUp)
        {
            //Destroy(this.gameObject);
            this.gameObject.SetActive(false);
        }
        yield return(null);
    }