Пример #1
0
    /// <summary>
    /// Causes the change of the focus list to the given focus2D array.
    /// </summary>
    public void Activate()
    {
        //Check if the camera2D exists.
        if (m_Camera2D == null)
        {
#if UNITY_EDITOR
            Debug.LogError(CAMERA_IS_NULL);
#endif
            return;
        }

        m_Camera2D.ClearFocusList();
        m_Camera2D.AddFocus(m_NewFocusList);
    }