public BioJoint AddJoint()
 {
     if (Joint != null)
     {
         Debug.Log("The segment already has a joint.");
     }
     else
     {
         Joint = Utility.AddBioJoint(this);
         Character.Refresh();
     }
     return(Joint);
 }
示例#2
0
 void Awake()
 {
     EditorApplication.playmodeStateChanged += PlaymodeStateChanged;
     Target          = (BioIK)target;
     TargetTransform = Target.transform;
     Target.Refresh(false);
     DoF = 0;
     //MakeVisible(TargetTransform);
     //MakeInvisible(TargetTransform);
 }