Example #1
0
 public void Remove(Placer component)
 {
     this[component.Position].Remove(component);
     OnRemove?.Invoke(component);
 }
Example #2
0
 public void Register(Placer component)
 {
     this[component.Position].Add(component);
     OnPlace?.Invoke(component);
 }
Example #3
0
 public void Move(Placer component, Vector newPosition)
 {
     Remove(component);
     component.Position = newPosition;
     Register(component);
 }