Example #1
0
 private void Awake()
 {
     gestureSettings = Utils.GetGestureSettings();
     gestureRig      = VRGestureRig.GetPlayerRig(gestureSettings.playerID);
     EventCenter.AddListener(EventDefine.ShowGestureInfPanel, ShowGestureInfPanel);
     Init();
 }
Example #2
0
 private void Awake()
 {
     Init();
     gestureSettings = Utils.GetGestureSettings();
     gestureRig      = VRGestureRig.GetPlayerRig(gestureSettings.playerID);
     EventCenter.AddListener <string>(EventDefine.ShowGestureEditPanel, ShowGestureEditPanel);
     EventCenter.AddListener(EventDefine.FinishedGestureRecord, FinishedGestureRecord);
     EventCenter.AddListener <bool>(EventDefine.UIPointHovering, UIPointHovering);
 }
    // Use this for initialization
    void Start()
    {
        gestureSettings = Utils.GetGestureSettings();

        Debug.Log("Current neural network: " + GestureSettings.currentNeuralNet);

        if (gestureSettings == null)
        {
            Debug.LogError("Gesture settings null");
        }

        Debug.Log("Number of gestures in the bank : " + gestureSettings.gestureBank.Count);
    }
 private void Awake()
 {
     gestureSettings = Utils.GetGestureSettings();
     gestureRig      = VRGestureRig.GetPlayerRig(gestureSettings.playerID);
     back_Button     = transform.Find("Back_Button").GetComponent <Button>();
     back_Button.onClick.AddListener(() =>
     {
         EventCenter.Broadcast(EventDefine.ShowGestureMainPanel);
         gameObject.SetActive(false);
     });
     GestureName     = transform.Find("Name").GetComponent <Text>();
     GestureAccuracy = transform.Find("Accruacy").GetComponent <Text>();
     EventCenter.AddListener(EventDefine.ShowGestureDetectPanel, ShowGestureDetectPanel);
     GestureRecognizer.GestureDetectedEvent += GestureRecognizer_GestureDetectedEvent;
     gameObject.SetActive(false);
 }
 void Awake()
 {
     gestureSettings = Utils.GetGestureSettings();
     gestureRig      = VRGestureRig.GetPlayerRig(gestureSettings.playerID);
     gesture_inf     = transform.Find("Ges_Inf").GetComponent <Button>();
     gesture_inf.onClick.AddListener(() => {
         EventCenter.Broadcast(EventDefine.ShowGestureInfPanel);
         gameObject.SetActive(false);
     });
     gesture_detect = transform.Find("Ges_Detect").GetComponent <Button>();
     gesture_detect.onClick.AddListener(() => {
         EventCenter.Broadcast(EventDefine.ShowGestureDetectPanel);
         gameObject.SetActive(false);
     });
     EventCenter.AddListener(EventDefine.ShowGestureMainPanel, ShowGesturePanel);
     ShowGesturePanel();
 }
 public virtual void Awake()
 {
     gestureSettings = Utils.GetGestureSettings();
     gestureRig      = VRGestureRig.GetPlayerRig(gestureSettings.playerID);
     GestureRecognizer.GestureDetectedEvent += GestureRecognizer_GestureDetectedEvent;
 }
Example #7
0
 static GestureSkillManager()
 {
     gestureSettings = Utils.GetGestureSettings();
     GestureSkillDic = getGestureSkillDic();
 }
Example #8
0
 private void Awake()
 {
     gestureSettings = Utils.GetGestureSettings();
     GetComponent <Button>().onClick.AddListener(DeleteThisExample);
 }