예제 #1
0
    // Token: 0x06000E0C RID: 3596 RVA: 0x000727AC File Offset: 0x000709AC
    public GameObject INJNQNMOKKD(Vector3 CJPHBQONGLK, float DGKOIGOLHDM = 1f, float DDLQKFDFMCJ = 1f)
    {
        Transform transform = base.transform;

        CJPHBQONGLK = transform.TransformDirection(CJPHBQONGLK);
        Vector3    b      = LMBPJGBGLNO.BILJMLJJJQP(base.gameObject);
        float      num    = float.MaxValue;
        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.Explicit && lmbpjgbglno.OMJBJEKCLMM)
            {
                ENFMCDNLEQQ component = lmbpjgbglno.GetComponent <ENFMCDNLEQQ>();
                if (!(component != null) || component.DIIHJCJOKMP != 0f)
                {
                    Vector3 direction = LMBPJGBGLNO.BILJMLJJJQP(lmbpjgbglno.gameObject) - b;
                    float   num2      = Vector3.Dot(CJPHBQONGLK, direction.normalized);
                    if (num2 >= 0.707f)
                    {
                        direction    = transform.InverseTransformDirection(direction);
                        direction.x *= DGKOIGOLHDM;
                        direction.y *= DDLQKFDFMCJ;
                        float sqrMagnitude = direction.sqrMagnitude;
                        if (sqrMagnitude <= num)
                        {
                            result = lmbpjgbglno.gameObject;
                            num    = sqrMagnitude;
                        }
                    }
                }
            }
        }
        return(result);
    }