Esempio n. 1
0
	void OnTriggerEnter2D(Collider2D col) {

		
		Abuela abuela =  col.GetComponent<Abuela>();
		if(abuela)
		{
			inventory = abuela.GetComponentInChildren<AbuelaInventory>();
			if (abuela) {
				collidingWithAbuela = true;
			} else {
				collidingWithAbuela = false;
			}
		}
	}
	// Use this for initialization
	void Start () {
		
		inventario = GameObject.FindObjectOfType<AbuelaInventory>();
		SourceImage = GetComponent<Image>();
	}