-
Notifications
You must be signed in to change notification settings - Fork 0
/
IPOSC.cs
44 lines (34 loc) · 930 Bytes
/
IPOSC.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class IPOSC : MonoBehaviour
{
public Button bntclick;
public OSC osc1;
public OSC osc2;
public OSC osc3;
public OSC osc4;
public InputField PORT;
public string a;
// Start is called before the first frame update
void Start()
{
DontDestroyOnLoad(this);
}
public void press()
{
OscMessage message;
message = new OscMessage();
message.Address = "/volume";
message.Values.Add("A");
osc1.Send(message);
//osc2.Send(message);
//osc3.Send(message);
//osc4.Send(message);
a = osc1.ToString();
Debug.Log("send : "+"start");
//SceneManager.LoadScene(sceneName: "OSC Unity Example");
}
}