Beispiel #1
0
    public void kick()
    {
        print("ball is kicked");

        //Get speed and direction of kick from arrow controller
        var speed     = arrowController.getSpeed();
        var direction = arrowController.getDirection();

        rb.isKinematic = false;
        rb.AddForce(direction * speed);

        EventSystem.kick();

        TutorialController.instance.closeTutorial();
    }