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"); }
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"); }
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"); }
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); } }