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