Exemple #1
0
 private void OnTriggerStay(Collider other)
 {
     if (other.tag == "item" && !is_catch)
     {
         is_trigg = true;
         targ     = other.transform.GetComponent <itemset_a>();
     }
 }
 void catchdown()
 {
     is_catch            = false;
     targ.rig.useGravity = true;
     targ.coli.enabled   = true;
     targ.target         = null;
     targ = null;
 }