Example #1
0
 public static void AddController(AgentController agentController)
 {
     if (PlayerManager.ContainsController(agentController))
     {
         return;
     }
     agentController.PlayerIndex = AgentControllers.Add(agentController);
     if (MainController == null)
     {
         MainController = agentController;
     }
 }
        private static void GetMousedAgent()
        {
            if (EventSystem.current != null && EventSystem.current.IsPointerOverGameObject())
            {
                return;
            }

            MouseOver(RTSInterfacing.GetScreenAgent(Input.mousePosition, (agent) =>
            {
                return(agent.CanSelect && PlayerManager.ContainsController(agent.Controller));
            }));
        }
Example #3
0
 private static void GetMousedAgent()
 {
     MouseOver(RTSInterfacing.GetScreenAgent(Input.mousePosition, (agent) => {
         return(agent.CanSelect && PlayerManager.ContainsController(agent.Controller));
     }));
 }