[unity] Removed redundant [SerializeField] attributes at public members. Closes #1757.

This commit is contained in:
Harald Csaszar 2020-09-10 18:06:26 +02:00
parent 263097953e
commit faf9bbfe87
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ namespace Spine.Unity {
/// <summary>If a bone isn't set in code, boneName is used to find the bone at the beginning. For runtime switching by name, use SetBoneByName. You can also set the BoneFollower.bone field directly.</summary>
[SpineBone(dataField: "skeletonRenderer")]
[SerializeField] public string boneName;
public string boneName;
public bool followXYPosition = true;
public bool followZPosition = true;

View File

@ -57,7 +57,7 @@ namespace Spine.Unity {
/// <summary>If a bone isn't set in code, boneName is used to find the bone at the beginning. For runtime switching by name, use SetBoneByName. You can also set the BoneFollower.bone field directly.</summary>
[SpineBone(dataField: "skeletonGraphic")]
[SerializeField] public string boneName;
public string boneName;
public bool followBoneRotation = true;
[Tooltip("Follows the skeleton's flip state by controlling this Transform's local scale.")]

View File

@ -44,7 +44,7 @@ namespace Spine.Unity {
[HelpURL("http://esotericsoftware.com/spine-unity#PointFollower")]
public class PointFollower : MonoBehaviour, IHasSkeletonRenderer, IHasSkeletonComponent {
[SerializeField] public SkeletonRenderer skeletonRenderer;
public SkeletonRenderer skeletonRenderer;
public SkeletonRenderer SkeletonRenderer { get { return this.skeletonRenderer; } }
public ISkeletonComponent SkeletonComponent { get { return skeletonRenderer as ISkeletonComponent; } }