public override void Update(OSC.OSCMessage msg) {
//		Debug.Log(msg.ToString());
		int frame = (int)msg.Values[0];
		if(msg.Values[1] is System.Double) {
			System.Double x = (System.Double) msg.Values[1];
			System.Double y = (System.Double) msg.Values[2];
			Update(frame, new Vector2((float)x, (float)y));
		}
		else {
			Update(frame, new Vector2((float)msg.Values[1], (float)msg.Values[2]));
		}
		
	}
Exemple #2
0
        public override void Update(OSC.OSCMessage msg)
        {
            if (!ticked)
            {
                return;
            }
            ticked = false;

            float level = (float)msg.Values[0];

            if (OnCollision != null)
            {
                OnCollision(level);
            }
        }
Exemple #3
0
        public override void Update(OSC.OSCMessage msg)
        {
            position.x = (float)msg.Values[0];
            position.y = (float)msg.Values[1];
            position.z = (float)msg.Values[2];

            rotation.x = (float)msg.Values[3];
            rotation.y = (float)msg.Values[4];
            rotation.z = (float)msg.Values[5];

            rect = Rect.MinMaxRect(
                (float)msg.Values[6],
                (float)msg.Values[7],
                (float)msg.Values[8],
                (float)msg.Values[9]
                );

            Notify();
        }
 public abstract void Update(OSC.OSCMessage msg);
 public override void Update(OSC.OSCMessage msg)
 {
     // TODO implementation
 }