void OnClickModel() { Text buttonText = buttonMod.GetComponentInChildren <Text>(); if (buttonText.text.Equals("Male")) { modSwitch.ShowModel(0); } else { modSwitch.ShowModel(1); } }
// Update is called once per frame void Update() { if (isCamSwitched) { camSwitch.ShowView(activeCamID); isCamSwitched = false; } if (isModSwitched) { modSwitch.ShowModel(activeModID); isModSwitched = false; } if (isFeedback) { modSwitch.ShowFeedback(ref activeFeedbackPoints); isFeedback = false; } }