void Start()
    {
        m_minimap = new Minimap();

        //if the user has selected a rendertexture in the inspector to be the target
        //then use that one, otherwise make a new rendertexture and make it avalible
        //via the TargetTexture field
        TargetTexture = m_minimap.Image;
        //only use the current camera if PlayerCamera was not set in the
        //inspector
        if (PlayerCamera == null)
        {
            //check to see if we are connected to a camera
            if (GetComponent<Camera>())
            {
                //and if we are use that camera as the player camera
                PlayerCamera = GetComponent<Camera>();
            }
        }
        viewBox = m_minimap.getViewBoxGameObject(PlayerCamera, true, 30.0f);
    }