Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3.  
  4. [ExecuteInEditMode]
  5. public class CustomPath : MonoBehaviour
  6. {
  7. [HideInInspector]
  8. public List<CustomPathUser> users = new List<CustomPathUser>();
  9.  
  10. public void RegisterUser(CustomPathUser pathUser)
  11. {
  12. users.Add(pathUser);
  13. }
  14.  
  15. public void UnregisterUser(CustomPathUser pathUser)
  16. {
  17. users.Remove(pathUser);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement