public UIGrabStatusGizmo CreateGrab()
    {
        //IL_0015: Unknown result type (might be due to invalid IL or missing references)
        //IL_001a: Expected O, but got Unknown
        UIGrabStatusGizmo orCreate = this.GetOrCreate <UIGrabStatusGizmo>(grabList, grabStatusGizmo);

        SetDepth(orCreate.get_gameObject());
        return(orCreate);
    }
 private void UnableGrabMarker()
 {
     if (m_grabMarker != null)
     {
         m_grabMarker.UnableMarker();
         m_grabMarker = null;
     }
     if (uiGrabStatusGizmo != null)
     {
         uiGrabStatusGizmo.targetEnemy = null;
         uiGrabStatusGizmo.targetPoint = null;
         uiGrabStatusGizmo             = null;
     }
 }
    private void UpdateGrabMarker()
    {
        Enemy boss = MonoBehaviourSingleton <StageObjectManager> .I.boss;

        if (!(boss == null) && !boss.isDead)
        {
            EnemyRegionWork   enemyRegionWork = null;
            EnemyRegionWork[] regionWorks     = boss.regionWorks;
            if (regionWorks != null)
            {
                for (int i = 0; i < regionWorks.Length; i++)
                {
                    if (regionWorks[i].weakState == Enemy.WEAK_STATE.WEAK_GRAB)
                    {
                        enemyRegionWork = regionWorks[i];
                        break;
                    }
                }
                if (enemyRegionWork == null)
                {
                    UnableGrabMarker();
                }
                else
                {
                    TargetPoint targetPoint = boss.SearchTargetPoint(enemyRegionWork.regionId);
                    if (targetPoint == null)
                    {
                        Debug.LogWarning((object)"Not found TargetPoint.");
                    }
                    else
                    {
                        if (m_grabMarker == null)
                        {
                            m_grabMarker = new TargetMarker(base._transform);
                        }
                        m_grabMarker.UpdateByTargetPoint(targetPoint, "ef_btl_target_cannon_03");
                        if (uiGrabStatusGizmo == null)
                        {
                            uiGrabStatusGizmo = MonoBehaviourSingleton <UIStatusGizmoManager> .I.CreateGrab();
                        }
                        uiGrabStatusGizmo.targetEnemy = boss;
                        uiGrabStatusGizmo.targetPoint = targetPoint;
                    }
                }
            }
        }
    }