コード例 #1
0
 private void InitSkeleton()
 {
     if (skeletonRoot)
     {
         skeletonTransformMomentos = new List <TransformMemento>();
         skeletonTransforms        = skeletonRoot.GetComponentsInChildren <Transform>();
         foreach (Transform transform in skeletonTransforms)
         {
             TransformMemento transformMemento = new TransformMemento();
             transformMemento.Initialize(transform);
             skeletonTransformMomentos.Add(transformMemento);
         }
     }
 }
コード例 #2
0
 protected override void Awake()
 {
     base.Awake();
     poolParent = transform.parent;
     skeletonRootMemento.Initialize(skeletonRoot.transform);
     transformMemento.Initialize(transform);
     InitSkeleton();
     ExtractRbWeights();
     if (grabObject != null)
     {
         grabObjectMomento = new TransformMemento();
         grabObjectMomento.Initialize(grabObject.transform);
     }
     ResetForRebirth();
 }
コード例 #3
0
 public void Initialize()
 {
     savedConfiguration.Initialize(transform);
 }
コード例 #4
0
 private void Awake()
 {
     spriteRenderer = GetComponentInChildren <SpriteRenderer>();
     initialTransform.Initialize(transform);
 }