예제 #1
0
        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));
            }));
        }
예제 #2
0
 private static void GetMousedAgent()
 {
     MouseOver(RTSInterfacing.GetScreenAgent(Input.mousePosition, (agent) => {
         return(agent.CanSelect && PlayerManager.ContainsController(agent.Controller));
     }));
 }