private void LoadSymbols()
    {
        dropDownList.ClearOptions();
        MhGestureManager.LoadGestures();
        List <string> symbolsName = MhGestureManager.gestures.ConvertAll(x => x.name);

        dropDownList.AddOptions(symbolsName);
    }
Пример #2
0
    //placeholder, may be removed

    // Use this for initialization
    void Start()
    {
        if (MhGestureManager.gestures.Count == 0)
        {
            MhGestureManager.LoadGestures();
        }
        // consider changing  MhGestureManager.distanceConstant in case of diferent resolution than 1920x1080
        //current ratio is compromise which should do good result in most cases
        pointCapturingDistance = (Screen.width * Screen.height) / MhGestureManager.distanceConstant;

        //remove when working with Test Grid Scene
        //attackScript = GameObject.Find("AltPlayer").GetComponent<PlayerAttack2D>();
    }