// Reset on disable
    private void OnDisable()
    {
        if (resetScript != null)
        {
            resetScript.Reset();
        }

        target = null;
    }
Exemple #2
0
    // Reset on disable
    private void OnDisable()
    {
        if (resetScript != null)
        {
            resetScript.Reset();
        }

        target            = null;
        stickyRay.enabled = false;
    }
Exemple #3
0
    // 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);
        }
    }
Exemple #6
0
    // 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;
    }