private void SetBlackMaskVisible(bool visible, float fadeFactor) { if (mBlackMask) { if (mBlackMask.GetComponent<Renderer>().enabled != visible) mBlackMask.GetComponent<Renderer>().enabled = visible; mBlackMask.SetFadeFactor(fadeFactor); } }
void SetBlackMaskVisible(bool visible, float fadeFactor) { if (m_BlackMaskBehaviour && m_BlackMaskBehaviour.enabled) { m_BlackMaskBehaviour.GetComponent <Renderer>().enabled = visible; m_BlackMaskBehaviour.SetFadeFactor(fadeFactor); } }