Ejemplo n.º 1
0
    void OnTriggerEnter(Collider other)
    {
        Food food = other.GetComponent <Food> ();

        if (food != null)
        {
            personality.EatFood(food);
            Destroy(other.gameObject);
        }
    }