コード例 #1
0
 public override void DoLateUpdate(Attachment attachment) {
     if (!IsConnected(attachment))
         return;
     AttachObject target = GetTarget(attachment);
     AttachObject follower = GetFollower(attachment);
     FollowingAttachStrategyUtility.FollowTarget(target, follower, positionOptions, rotationOptions);
 }
コード例 #2
0
        public override void DoLateUpdate(Attachment attachment)
        {
            AttachObject target = null;

            for (int c = 0; c < GetCategories().Length; c++)
            {
                AttachObjectList.Enumerator e = attachment.objects.GetEnumerator(c);
                while (e.MoveNext())
                {
                    AttachObject follower = e.Current;
                    if (target == null || !follower.isConnected)
                    {
                        target = follower;
                        continue;
                    }
                    FollowingAttachStrategyUtility.FollowTarget(target, follower, positionOptions, rotationOptions);
                    target = follower;
                }
                ;
            }
        }
コード例 #3
0
 protected override void ConnectBoth(AttachObject target, AttachObject follower) {
     FollowingAttachStrategyUtility.FollowTarget(target, follower, positionOptions, rotationOptions);
 }