Exemple #1
0
    // Function which handles input for keyboard only
    void GetInput0()
    {
        dx = DuckJS.Horizontal; //Input.GetAxis("Horizontal");
        dz = DuckJS.Vertical;   //Input.GetAxis("Vertical");
        duck.MoveDuck(-dz, dx, false);

        hx = HunterJS.Horizontal;
        hz = HunterJS.Vertical;
        hunter.MoveHunter(-hz, hx, false);
    }
Exemple #2
0
    // Function which handles input for keyboard only
    void GetInput0()
    {
        dx = Input.GetAxis("Horizontal");
        dz = Input.GetAxis("Vertical");
        duck.MoveDuck(dx, dz, Input.GetButtonDown("DDuck2"));

        hx = Input.GetAxis("Horizontalb");
        hz = Input.GetAxis("Verticalb");
        hunter.MoveHunter(hx, hz, Input.GetButtonDown("HFire2"));
    }