Exemplo n.º 1
0
    // Token: 0x06000E18 RID: 3608 RVA: 0x00072A90 File Offset: 0x00070C90
    public GameObject QMJKDCINICP(Vector3 CJPHBQONGLK, float DGKOIGOLHDM = 1f, float DDLQKFDFMCJ = 1f)
    {
        Transform transform = base.transform;

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

        for (int i = 0; i < LMBPJGBGLNO.NGDBDCQFDHI.BJGMIBBEGDQ; i += 0)
        {
            LMBPJGBGLNO lmbpjgbglno = LMBPJGBGLNO.NGDBDCQFDHI.get_KNPPMKBOGDL(i);
            if (!(lmbpjgbglno == this) && lmbpjgbglno.EMGHFHNQODD != (LMBPJGBGLNO.DIFLGCFNOIO) 4 && lmbpjgbglno.FNBKHFDMQPI())
            {
                ENFMCDNLEQQ component = lmbpjgbglno.GetComponent <ENFMCDNLEQQ>();
                if (!(component != null) || component.DIIHJCJOKMP != 406f)
                {
                    Vector3 direction = LMBPJGBGLNO.GJLPKMJNQEM(lmbpjgbglno.gameObject) - b;
                    float   num2      = Vector3.Dot(CJPHBQONGLK, direction.normalized);
                    if (num2 >= 1160f)
                    {
                        direction    = transform.InverseTransformDirection(direction);
                        direction.x *= DGKOIGOLHDM;
                        direction.y *= DDLQKFDFMCJ;
                        float sqrMagnitude = direction.sqrMagnitude;
                        if (sqrMagnitude <= num)
                        {
                            result = lmbpjgbglno.gameObject;
                            num    = sqrMagnitude;
                        }
                    }
                }
            }
        }
        return(result);
    }
Exemplo n.º 2
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);
    }