Ejemplo n.º 1
0
    public ChairPoint GetNearSitPoint(HomePlayerCharacterBase character)
    {
        //IL_0009: Unknown result type (might be due to invalid IL or missing references)
        //IL_000e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0013: Unknown result type (might be due to invalid IL or missing references)
        //IL_001b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0028: Unknown result type (might be due to invalid IL or missing references)
        //IL_002d: Unknown result type (might be due to invalid IL or missing references)
        float      num      = 3.40282347E+38f;
        ChairPoint result   = null;
        Vector3    position = character.get_transform().get_position();

        for (int i = 0; i < chairSitPoints.Count; i++)
        {
            float num2 = Vector3.Distance(position, chairSitPoints[i].get_transform().get_position());
            if (num > num2)
            {
                result = chairSitPoints[i];
                num    = num2;
            }
        }
        return(result);
    }
Ejemplo n.º 2
0
 public void ResetSittingCharacter()
 {
     sittingChara = null;
 }
Ejemplo n.º 3
0
 public void SetSittingCharacter(HomePlayerCharacterBase chara)
 {
     sittingChara = chara;
 }