Пример #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == ("Mother"))
        {
            TMove         = other.GetComponent <MamaTigerMovement>();
            TMove.enabled = false;

            Destroy(this.gameObject);
        }
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     cubMovement     = this.gameObject.GetComponent <MamaTigerMovement>();
     curplayer       = GameObject.Find("CubHoldingPosition");
     holdingPosision = curplayer.transform;
 }