Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     this.mode = PoseControllerMode.INITIALIZE;
     this.initializeInitialPoseCheckObjects();
     // alpha
     this.InitialPositionNoneMatchColor.a = 0.4f;
     this.InitialPositionMatchColor.a     = 0.4f;
 }
Beispiel #2
0
 public void setControllerMode(PoseControllerMode mode)
 {
     this.mode = mode;
     if (this.mode == PoseControllerMode.IDLE)
     {
         for (int i = 0; i < this.InitialPoseObjects.Length - 1; i++)
         {
             this.InitialPoseObjects[i].SetActive(false);
         }
     }
     else if (this.mode == PoseControllerMode.CHECK || this.mode == PoseControllerMode.INITIALIZE)
     {
         for (int i = 0; i < this.InitialPoseObjects.Length - 1; i++)
         {
             this.InitialPoseObjects[i].SetActive(true);
         }
     }
 }