Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using UnityEngine;
- [ExecuteInEditMode]
- public class CustomPath : MonoBehaviour
- {
- [HideInInspector]
- public List<CustomPathUser> users = new List<CustomPathUser>();
- public void RegisterUser(CustomPathUser pathUser)
- {
- users.Add(pathUser);
- }
- public void UnregisterUser(CustomPathUser pathUser)
- {
- users.Remove(pathUser);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement