ATwistCtrl.cs 685 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public abstract class ATwistCtrl
  5. {
  6. public ATwistCtrl(Maid.AutoTwist twist_type, TBody body)
  7. {
  8. this.twistType = twist_type;
  9. this.twistBones = new List<KeyValuePair<Transform, Transform>>();
  10. this.body = body;
  11. }
  12. public Transform bone { get; protected set; }
  13. public Transform mrBone { get; protected set; }
  14. public List<KeyValuePair<Transform, Transform>> twistBones { get; protected set; }
  15. public abstract void ApplyTwist();
  16. protected Transform GetMRBone(string bone_name)
  17. {
  18. return this.body.m_dicBonesMR[bone_name];
  19. }
  20. public readonly Maid.AutoTwist twistType;
  21. public readonly TBody body;
  22. }