//PlayerPrefs
    // Use this for initialization
    void Start()
    {
        getPos = Camera.main.GetComponent<GetPos>();
        nav = GetComponent<NavMeshAgent>();
        ani = GetComponent<Animator>();

        ani.SetBool("isWalking", true);
        ani.speed = 5f;
        startDes = getPos.desPos;
        nav.SetDestination(startDes);
        nav.stoppingDistance = 0.0f;
    }
Exemple #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     //if (Tello.state.flying)
     GetPos.PerformClick();
 }
Exemple #3
0
        public DiffName(int __indexDiff)
        {
            switch (__indexDiff)
            {
            default:
            case 0:
                displayName = "2 Mix (solo)";
                urlName     = "0";
                shortName   = "2s";
                middle      = 0.5;
                GetX        = _Get_f_solo;
                GetY        = _Get_2b_solo;
                x_flick     = new double[] { 0, 0, -5, 0 };
                y_flick     = new double[] { 0, 5, 0, -5 };
                x_center    = 71.36;
                y_center    = 50;
                break;

            case 1:
                displayName = "2 Mix+ (solo)";
                urlName     = "1";
                shortName   = "2p";
                middle      = 0.5;
                GetX        = _Get_f_solo;
                GetY        = _Get_2b_solo;
                x_flick     = new double[] { 0, 0, -5, 0 };
                y_flick     = new double[] { 0, 5, 0, -5 };
                x_center    = 71.36;
                y_center    = 50;
                break;

            case 2:
                displayName = "2 Mix";
                urlName     = "0";
                shortName   = "2m";
                middle      = 0.5;
                GetX        = _Get_2b;
                GetY        = _Get_f;
                x_flick     = new double[] { 0, -1, 0, 1 };
                y_flick     = new double[] { 0, 0, -5, 0 };
                x_center    = 50;
                y_center    = 82.82;
                break;

            case 3:
                displayName = "4 Mix";
                urlName     = "2";
                shortName   = "4m";
                middle      = 1.5;
                GetX        = _Get_4b;
                GetY        = _Get_f;
                x_flick     = new double[] { 0, -1, 0, 1 };
                y_flick     = new double[] { 0, 0, -5, 0 };
                x_center    = 50;
                y_center    = 82.82;
                break;

            case 4:
                displayName = "6 Mix";
                urlName     = "3";
                shortName   = "6m";
                middle      = 2.5;
                GetX        = _Get_6b;
                GetY        = _Get_f;
                x_flick     = new double[] { 0, -1, 0, 1 };
                y_flick     = new double[] { 0, 0, -5, 0 };
                x_center    = 50;
                y_center    = 82.82;
                break;

            case 5:
                displayName = "Million Mix";
                urlName     = "4";
                shortName   = "mm";
                middle      = 2.5;
                GetX        = _Get_6b;
                GetY        = _Get_f;
                x_flick     = new double[] { 0, -1, 0, 1 };
                y_flick     = new double[] { 0, 0, -5, 0 };
                x_center    = 50;
                y_center    = 82.82;
                break;
            }
        }