Exemple #1
0
 void OnTriggerEnter(Collider collision)
 {
     if (collision.transform.CompareTag("ground") && associateScript.ReturnIsGrab())
     {
         associateScript.ReleaseObject();
     }
 }
Exemple #2
0
 void GoodOnePut()
 {
     associateScript.Put();
     lightIndicator.color = Color.green;
     associateScriptPlayer.ReleaseObject();
     associateLead.gameObject.SetActive(false);
     lead.SetActive(true);
     isDo = true;
     StopCoroutine(Feedback());
     //Destroy(this) ;
 }