Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using FlutterUnityIntegration;
using UnityEngine;
using UnityEngine.EventSystems;
using System.Globalization;

public class Rotate : MonoBehaviour, IEventSystemHandler
{
Expand Down Expand Up @@ -39,7 +40,7 @@ void Update()
// This method is called from Flutter
public void SetRotationSpeed(String message)
{
float value = float.Parse(message);
float value = float.Parse(message , CultureInfo.InvariantCulture.NumberFormat);
RotateAmount = new Vector3(value, value, value);
}
}