int FindCameraNdx(UN_Camera cam) { if (cam == null) { return(-1); } else { return(_cameras[(int)cam.Tag].FindIndex((x) => x == cam)); } }
public void Unregister(UN_Camera cam) { Dbg.Assert(FindCameraNdx(cam) >= 0); _cameras[(int)cam.Tag].Remove(cam); }
public void Register(UN_Camera cam) { Dbg.Assert(FindCameraNdx(cam) < 0); _cameras[(int)cam.Tag].Add(cam); }