public static bool ContainsController(AgentController controller) { if (AgentControllers == null) { Debug.Log(controller); } return(controller.PlayerIndex < AgentControllers.PeakCount && AgentControllers.ContainsAt(controller.PlayerIndex, controller)); }