Unity "No MonoBehaviour script" Run impossible

@MalekRBAM

And use codetags when posting.

Please edit your post, here is the info how you can do this:

When code is formatted It is quite obvious to see where the problem is:

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

public class CharacBehaviour : MonoBehaviour
{
    public Rigidbody2D rb;
    public float vitesse;

    void Start()
    {
        rb.velocity += new Vecteur2(vitesse,0);
    }

    void Update()
    {
    }
}

There is no such thing as using some non-english language words for C# language keywords:

rb.velocity += new Vecteur2(vitesse,0);

You have to use correct C# keywords.

1 Like