void init(string name, float length, float width, float thickness, IKBoneSimple parentBone) { this.name = name; this.length = length; this.width = width; this.thickness = thickness; this.parentBone = parentBone; }
protected IKChainTwoBone(string name) : base(name) { GameObject first_GO = new GameObject(name + "_first"); first = first_GO.AddComponent <IKBoneSimple>(); GameObject second_GO = new GameObject(name + "_second"); second = second_GO.AddComponent <IKBoneSimple>(); GameObject target_GO = new GameObject(name + "_target"); target = target_GO.AddComponent <IKTarget2>(); target.init(this); }