Jump to content
Unity Insider Forum
Sign in to follow this  
Damian izz back

Finde die Fehlerquelle nicht

Recommended Posts

Guten Morgen 

Habe leider ein ähnliches Problem und weiß nicht was ich dagegen tun kann :( (Bin etwas überfordert, aber möchte es trotzdem lernen). Tut mir Leid falls ich euch belästige, mit meinen vielen Fragen, spätestens Montag in einer Woche wird es noch dauern, dann bin ich ruhig.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerMovement : MonoBehaviour

    public CharacterController controller;

    public float runSpeed = 40f;

    float horizontalMove = 0f;


    // Update is called once per frame
    void Update()
        horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed;
    private void FixedUpdate()
        //Move my character

        controller.Move(horizontalMove * Time.fixedDeltaTime, false, false);




Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...