void OnDrawGizmos() { if (m_Camera) { GizmosEx.DrawViewFrustumEx(m_Camera, -horizontalExtDis, horizontalExtDis, -bottomExtDis, topExtDis, Color.yellow); } }
void OnDrawGizmos() { Camera camera = gameObject.GetComponent <Camera>(); if (camera) { GizmosEx.DrawViewFrustumEx(camera, mLeftEx, mRightEx, mDownEx, mUpEx, Color.yellow); } }