Ejemplo n.º 1
0
    void OnClickModel()
    {
        Text buttonText = buttonMod.GetComponentInChildren <Text>();

        if (buttonText.text.Equals("Male"))
        {
            modSwitch.ShowModel(0);
        }
        else
        {
            modSwitch.ShowModel(1);
        }
    }
Ejemplo n.º 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;
     }
 }