Ejemplo n.º 1
0
    private IEnumerator DoSit(Action callback = null)
    {
        beforeNormalCameraPos = targetCameraTransform.get_position();
        beforeNormalCameraRot = targetCameraTransform.get_rotation();
        beforeNormalCameraFov = targetCamera.get_fieldOfView();
        TablePoint table = MonoBehaviourSingleton <LoungeManager> .I.TableSet.GetNearTablePoint();

        yield return((object)this.StartCoroutine(LerpCamera(targetPos: table.cameraPosition, targetRot: Quaternion.Euler(table.cameraRotation), targetFov: table.cameraFov, prevPos: beforeNormalCameraPos, prevRot: beforeNormalCameraRot, prevFov: beforeNormalCameraFov)));

        callback?.Invoke();
    }
Ejemplo n.º 2
0
    public TablePoint GetNearTablePoint()
    {
        //IL_0017: Unknown result type (might be due to invalid IL or missing references)
        //IL_001c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0021: Unknown result type (might be due to invalid IL or missing references)
        //IL_0029: Unknown result type (might be due to invalid IL or missing references)
        //IL_0036: Unknown result type (might be due to invalid IL or missing references)
        //IL_003b: Unknown result type (might be due to invalid IL or missing references)
        float      num      = 3.40282347E+38f;
        TablePoint result   = null;
        Vector3    position = MonoBehaviourSingleton <LoungeManager> .I.HomePeople.selfChara.get_transform().get_position();

        for (int i = 0; i < tablePoints.Count; i++)
        {
            float num2 = Vector3.Distance(position, tablePoints[i].get_transform().get_position());
            if (num > num2)
            {
                result = tablePoints[i];
                num    = num2;
            }
        }
        return(result);
    }