Esempio n. 1
0
    // Token: 0x06000E3C RID: 3644 RVA: 0x000731D4 File Offset: 0x000713D4
    public GameObject DPJPPEPHPQN(Vector3 CJPHBQONGLK, float DGKOIGOLHDM = 1f, float DDLQKFDFMCJ = 1f)
    {
        Transform transform = base.transform;

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

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