using UnityEngine; namespace BioIK { [AddComponentMenu("")] public abstract class BioObjective : MonoBehaviour { public BioSegment Segment; public double Weight = 1.0; void Awake() { } void Start() { } void OnEnable() { if(Segment != null) { Segment.Character.Refresh(); } } void OnDisable() { if(Segment != null) { Segment.Character.Refresh(); } } void OnDestroy() { } public BioObjective Create(BioSegment segment) { Segment = segment; hideFlags = HideFlags.HideInInspector; return this; } public void Remove() { for(int i=0; i