private void Start() { operateTabScript = GetComponent <Tab_operateTab>(); if (operateTabScript == null) { Debug.Log("The object this script is attached to needs to have a script that operates the tab!"); } }
private void Start() { if (fixedLimits) { updateLimitsPositions(); } // retrieve the component from which we will read the input operateTabScript = GetComponent <Tab_operateTab>(); if (operateTabScript == null) { Debug.Log("The object this script is attached to needs to have a script that operates the tab!"); } }
private void Start() { // retrieve the component from which we will read the input operateTabScript = GetComponent <Tab_operateTab>(); if (operateTabScript == null) { Debug.Log("The object this script is attached to needs to have a script that operates the tab!"); } switch (rotateAroundThisAxis) { case RotationAxisDirection.X: rotationAxis = Vector3.right; break; case RotationAxisDirection.Y: rotationAxis = Vector3.up; break; case RotationAxisDirection.Z: rotationAxis = Vector3.forward; break; } }