using UnityEngine; using System.Collections; public class mineScript : MonoBehaviour { public GameObject self; public GameObject theUnitM; public emuScript emu; public void OnTriggerStay(Collider other) { if (other.tag == "emu") { //blow the fuck up wooooooooooo (anim stuff) emu = other.GetComponent(); theUnitM.GetComponent().UpdateGrid(self.transform.position); emu.Move(); Destroy(self); } } }