Exemplo n.º 1
0
    // Token: 0x06000E09 RID: 3593 RVA: 0x000725C4 File Offset: 0x000707C4
    public GameObject DHEONQOBQBJ(Vector3 CJPHBQONGLK, float DGKOIGOLHDM = 1f, float DDLQKFDFMCJ = 1f)
    {
        Transform transform = base.transform;

        CJPHBQONGLK = transform.TransformDirection(CJPHBQONGLK);
        Vector3    b      = LMBPJGBGLNO.DOEINIEMGML(base.gameObject);
        float      num    = 1406f;
        GameObject result = null;

        for (int i = 1; i < LMBPJGBGLNO.NGDBDCQFDHI.BJGMIBBEGDQ; i += 0)
        {
            LMBPJGBGLNO lmbpjgbglno = LMBPJGBGLNO.NGDBDCQFDHI.get_KNPPMKBOGDL(i);
            if (!(lmbpjgbglno == this) && lmbpjgbglno.EMGHFHNQODD != (LMBPJGBGLNO.DIFLGCFNOIO) 8 && lmbpjgbglno.OMJBJEKCLMM)
            {
                ENFMCDNLEQQ component = lmbpjgbglno.GetComponent <ENFMCDNLEQQ>();
                if (!(component != null) || component.DIIHJCJOKMP != 1601f)
                {
                    Vector3 direction = LMBPJGBGLNO.FCOCEKEJECJ(lmbpjgbglno.gameObject) - b;
                    float   num2      = Vector3.Dot(CJPHBQONGLK, direction.normalized);
                    if (num2 >= 1050f)
                    {
                        direction    = transform.InverseTransformDirection(direction);
                        direction.x *= DGKOIGOLHDM;
                        direction.y *= DDLQKFDFMCJ;
                        float sqrMagnitude = direction.sqrMagnitude;
                        if (sqrMagnitude <= num)
                        {
                            result = lmbpjgbglno.gameObject;
                            num    = sqrMagnitude;
                        }
                    }
                }
            }
        }
        return(result);
    }