コード例 #1
0
    private void OnSceneGUI()
    {
        if (m_cameraFollow != null)
        {
            Handles.color  = Color.green;
            m_cameraFollow = (CameraFollow)target;
            DrawEdge();
            DrawCross(m_cameraFollow.PlayerCenter, 1.0f);
            DrawCircle(m_cameraFollow.PlayerCenter, m_cameraFollow.StartFollowDis, 30);
            DrawScreen(m_cameraFollow.PlayerCenter, m_cameraFollow.TargetSize);
            Handles.color = Color.red;
            DrawScreen(Camera.main.transform.position, m_cameraFollow.SizeMax);
            DrawScreen(Camera.main.transform.position, m_cameraFollow.SizeMin);


            m_cameraFollow.CameraScaleFollow();
            m_cameraFollow.CameraScaleLimit();
            m_cameraFollow.CameraPositionFollow();
            m_cameraFollow.CameraPositionLimit();
        }
    }