// Reset on disable private void OnDisable() { if (resetScript != null) { resetScript.Reset(); } target = null; }
// Reset on disable private void OnDisable() { if (resetScript != null) { resetScript.Reset(); } target = null; stickyRay.enabled = false; }
// Reset on disable private void OnDisable() { if (resetScript != null) { resetScript.Reset(); } target = null; Destroy(clone); }
// Reset on disable private void OnDisable() { if (resetScript != null) { resetScript.Reset(); } DestroyClones(); target = null; }
// Reset on disable private void OnDisable() { if (resetScript != null) { resetScript.Reset(); } if (touching != null) { touching.Clear(); } numTouching = 0; if (resizable) { transform.localScale = Vector3.one; transform.localPosition = new Vector3(0, 0, 0.5f); } }
// Reset on disable private void OnDisable() { if (resetScript != null) { resetScript.Reset(); } //if (pickUps != null) //{ // foreach (GameObject obj in pickUps) // { // if (obj != null) // { // obj.GetComponent<InteractiveBehaviour>().Contact(false); // } // } //} target = null; }