Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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<emuScript>();
- theUnitM.GetComponent<unitManager>().UpdateGrid(self.transform.position);
- emu.Move();
- Destroy(self);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement