예제 #1
0
    public void ChangetoMediumSize()
    {
        if (currentSizeState != ManipulatedObjectSize.Medium)
        {
            m_object.transform.localScale = originalScale * 1.2f;
            currentSizeState = ManipulatedObjectSize.Medium;
        }

        Debug.Log("The object has been changed to Medium alread");
    }
예제 #2
0
    public void ChangetoSmallSize()
    {
        if (currentSizeState != ManipulatedObjectSize.Small)
        {
            m_object.transform.localScale = originalScale * 0.5f;
            currentSizeState = ManipulatedObjectSize.Small;
        }

        Debug.Log("The object has been changed to Small alread");
    }
예제 #3
0
    public void ChangetoLargeSize()
    {
        if (currentSizeState != ManipulatedObjectSize.Large)
        {
            m_object.transform.localScale = originalScale * 1.5f;
            currentSizeState = ManipulatedObjectSize.Large;
        }

        Debug.Log("The object has been changed to Large alread");
    }
예제 #4
0
    public void ChangetoLargeSize()
    {
        if (currentSizeState != ManipulatedObjectSize.Large)
        {
            m_object.transform.localScale = originalScale * 1.5f;
            currentSizeState = ManipulatedObjectSize.Large;
        }

        Debug.Log("The object has been changed to Large alread");

        if (other.iftask8)
        {
            //InteractionButton T8InteractionButton = (InteractionButton)T8.GetComponent(typeof(InteractionButton));
            //T8InteractionButton.controlEnabled = false;
            //T8.transform.GetChild(0).GetChild(0).GetComponent<MeshRenderer>().materials[0].color = Color.grey;
            timer.PauseTiming();
            AudioSource.PlayClipAtPoint(complete, transform.position);
        }
    }