public in GetGameComponents< RtsGamePlayerObjectsInteractive >()) { selectedObject. playerSelectedgameObject

public class RtsGamePlayerObjectsInteractive : MonoBehaviour {     private bool _playerSelectedgameObject = false;         public bool _playerGameObjectSwap = false;     public bool playerSelectedgameObject { get { return _playerSelectedgameObject; } }      public void gameOBjectSelect()     {        _playerSelectedgameObject = true;        foreach (var selectedObject in GetGameComponents< RtsGamePlayerObjectsInteractive >()) {            selectedObject. playerSelectedgameObject ();        }    }     public void gameOBjectDeselect()    {        _playerSelectedgameObject = false;        foreach (var selectedObject in GetGameComponents< RtsGamePlayerObjectsInteractive >()) {            selectedObject. gameOBjectDeselect()        }    }