Skip to content

Commit

Permalink
version 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Rossel committed Jan 22, 2016
1 parent 3c277a0 commit d4f94a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/Serial/Demo/assets/GUIText2Btn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;

public class GUIText2Btn : MonoBehaviour
Expand Down Expand Up @@ -42,7 +43,7 @@ void OnGUI ()

if (GUI.Button (rect, gameObject.GetComponent<GUIText>().text, guiStyle)) {
if (onClickLoadScene != null)
Application.LoadLevel (onClickLoadScene);
SceneManager.LoadScene (onClickLoadScene);

GameObject target = MessageTarget;
if (target == null)
Expand Down
Binary file modified UnitySerialPort.unitypackage
Binary file not shown.

0 comments on commit d4f94a2

Please sign in to comment.