public class rtsPlayerMouseControlManager : MonoBehaviour { private List

public class rtsPlayerMouseControlManager : MonoBehaviour {     private List< RtsGamePlayerObjectsInteractive > playerSelectedeObjects = new List < RtsGamePlayerObjectsInteractive > ();     void Update () {         if (playerSelectedeObjects.Count > 0) {            if (!Input.GetKey (KeyCode.LeftShift) && !Input.GetKey (KeyCode.RightShift) )            {                foreach(var object in playerSelectedeObjects)                {}                playerSelectedeObjects.Clear();            }        }         var ray = Camera.main.ScreenPointToRay (Input.mousePosition);        RaycastHit rayCastHit;        if (!Physics.Raycast (rayCast, out rayCastHit)){            return;        }         var playerInteractObject = hit.transform.GetComponent< RtsGamePlayerObjectsInteractive > ();        if (playerInteractObject == null)            return;         playerSelectedeObjects.Add (playerInteractObject);        playerInteractObject. playerSelectedeObjects();    }}