public KeyboardUI SpawnAlphaNumericKeyboard() { if (m_NumericKeyboard != null) { m_NumericKeyboard.gameObject.SetActive(false); } // Check if the prefab has already been instantiated if (m_StandardKeyboard == null) { m_StandardKeyboard = ObjectUtils.Instantiate(m_StandardKeyboardPrefab.gameObject, CameraUtils.GetCameraRig(), false).GetComponent <KeyboardUI>(); var smoothMotions = m_StandardKeyboard.GetComponentsInChildren <SmoothMotion>(true); foreach (var smoothMotion in smoothMotions) { this.ConnectInterfaces(smoothMotion); } } return(m_StandardKeyboard); }