private void OnTriggerEnter(Collider other) { if (other.tag == ("Mother")) { TMove = other.GetComponent <MamaTigerMovement>(); TMove.enabled = false; Destroy(this.gameObject); } }
// Use this for initialization void Start() { cubMovement = this.gameObject.GetComponent <MamaTigerMovement>(); curplayer = GameObject.Find("CubHoldingPosition"); holdingPosision = curplayer.transform; }