@@ -8,10 +8,10 @@ namespace MultiTagSystem
88 public class MultiTagComponent : MonoBehaviour
99 {
1010 [ HideInInspector ]
11- public List < string > tags => _tags ;
11+ public List < string > Tags => _Tags ;
1212
1313 [ SerializeField ]
14- private List < string > _tags ;
14+ private List < string > _Tags ;
1515
1616 private void Awake ( )
1717 {
@@ -20,28 +20,28 @@ private void Awake()
2020
2121 public void AddDict ( )
2222 {
23- MultiTag . MultiTagsAddToDict ( _tags . ToArray ( ) , gameObject ) ;
23+ MultiTag . MultiTagsAddToDict ( _Tags . ToArray ( ) , gameObject ) ;
2424 }
2525
2626 private void OnDestroy ( )
2727 {
28- MultiTag . RemoveToDict ( _tags . ToArray ( ) , gameObject ) ;
28+ MultiTag . RemoveToDict ( _Tags . ToArray ( ) , gameObject ) ;
2929 }
3030
3131 /// <summary>
3232 /// Adds a Tag from the Set.
3333 /// <para>You cannot create a new Tag.</para>
34- /// <para>To add a Tag via the Editor and rebuild .</para>
34+ /// <para>To create do it via the Editor and Rebuild .</para>
3535 /// </summary>
3636 /// <param name="tag"></param>
3737 public void AddTag ( string tag )
3838 {
39- if ( Tags . Set . Contains ( tag ) )
39+ if ( MultiTagSystem . Tags . Set . Contains ( tag ) )
4040 {
41- var hashSet = new HashSet < string > ( _tags ) ;
41+ var hashSet = new HashSet < string > ( _Tags ) ;
4242 if ( hashSet . Add ( tag ) )
4343 {
44- _tags = hashSet . ToList ( ) ;
44+ _Tags = hashSet . ToList ( ) ;
4545 MultiTag . SingleTagAddToDict ( tag , gameObject ) ;
4646 }
4747 }
@@ -53,12 +53,12 @@ public void AddTag(string tag)
5353 /// <param name="tag"></param>
5454 public void RemoveTag ( string tag )
5555 {
56- if ( Tags . Set . Contains ( tag ) )
56+ if ( MultiTagSystem . Tags . Set . Contains ( tag ) )
5757 {
58- var hashSet = new HashSet < string > ( _tags ) ;
58+ var hashSet = new HashSet < string > ( _Tags ) ;
5959 if ( hashSet . Remove ( tag ) )
6060 {
61- _tags = hashSet . ToList ( ) ;
61+ _Tags = hashSet . ToList ( ) ;
6262 MultiTag . SingleRemoveFromDict ( tag , gameObject ) ;
6363 }
6464 }
0 commit comments