Skip to content

Instantly share code, notes, and snippets.

@westside
Created January 9, 2019 08:11
Show Gist options
  • Save westside/cd746f1951b4978cc78b718f5ac1d4a9 to your computer and use it in GitHub Desktop.
Save westside/cd746f1951b4978cc78b718f5ac1d4a9 to your computer and use it in GitHub Desktop.
Send ping
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bhaptics.Tact.Unity
{
public class FunctionTest : MonoBehaviour
{
// Use this for initialization
void Start()
{
InvokeRepeating("test", 4f, 4f);
}
// Update is called once per frame
void Update()
{
var item = BhapticsManager.HapticPlayer.IsActive(PositionType.HandL);
Debug.Log("IsActive : " + item);
}
void test()
{
BhapticsManager.HapticPlayer.Submit("_______ping________", PositionType.HandL, new List<DotPoint>(), 100);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment