Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        // Have mouse follow the user if 'M' button pressed
        if (Input.GetKeyUp(KeyCode.M))
        {
            followUserMouse = true;
        }

        // Toggle flights if 'J' button pressed
        if (Input.GetKeyUp(KeyCode.J))
        {
            globalBehavior.toggleSequential();
        }

        //Toggle waypoint visibility if 'H' button pressed
        if (Input.GetKeyUp(KeyCode.H))
        {
            globalBehavior.toggleWaypointVisibility();
        }

        UpdateMotion();
        BoundPosition();
        ProcessEggSpwan();
    }