Exemplo n.º 1
0
 public void VibrateFinger(ESensoFingerType finger, ushort duration, byte strength)
 {
     if (m_sensoManager.IsAlive)
     {
         SensoManager man = m_sensoManager.Target as SensoManager;
         man.SendVibro(HandType, finger, duration, strength);
     }
 }
Exemplo n.º 2
0
 protected virtual void Awake()
 {
     //Check the singleton is unique
     if (_instance == null)
     {
         _instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 3
0
 public void SetSensoManager(SensoManager manager)
 {
     m_sensoManager = new WeakReference(manager, false);
 }
 // Start is called before the first frame update
 void Start()
 {
     _senso = SensoManager.Instance;
     WireEvents();
     InitLED();
 }