Exemple #1
0
 void OnTriggerExit(Collider other)
 {
     if (ps.SetChoice(choice))
     {
         bool saveme = true;
         ps.GetDataFarmer().Save(new DFAnswerSelection(), saveme);
         Debug.Log(string.Format("Answer selected: {0}", ps.GetLastChoice()));
     }
 }
Exemple #2
0
 void OnTriggerStay(Collider other)
 {
     if (leftController.controller.GetHairTriggerUp() || rightController.controller.GetHairTriggerUp())
     {
         if (ps.SetChoice(choice))
         {
             bool saveme = true;
             ps.GetDataFarmer().Save(new DFAnswerSelection(), saveme);
             Debug.Log(string.Format("Answer selected: {0}", ps.GetLastChoice()));
         }
     }
 }