Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using UnityEngine;
- namespace Nicklaj.SimpleSOAP
- {
- /// <summary>
- /// Base Runtime Set class. Extend this to create your scriptable list that will act
- /// </summary>
- /// <typeparam name="T"></typeparam>
- public abstract class RuntimeSetBase<T> : RuntimeScriptableObject
- {
- public List<T> Items = new List<T>();
- public void Add(T item)
- {
- if (!Items.Contains(item))
- Items.Add(item);
- }
- public void Remove(T item)
- {
- if (Items.Contains(item))
- Items.Remove(item);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement