예제 #1
0
    void OnClickModel()
    {
        Text buttonText = buttonMod.GetComponentInChildren <Text>();

        if (buttonText.text.Equals("Male"))
        {
            modSwitch.ShowModel(0);
        }
        else
        {
            modSwitch.ShowModel(1);
        }
    }
예제 #2
0
 // 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;
     }
 }