Search Unity

error CS0119: Expression denotes a method group', where a 'variable', 'value' or 'type' was expected

Discussion in '2D' started by boston1063, Mar 22, 2018.

  1. boston1063

    boston1063

    Joined:
    Mar 22, 2018
    Posts:
    1
    I'm fairly new to unity and I'm getting the error CSO119 heres the line it says I need to fixed

    GameObject.GetComponent.Player.PlayerMov.JumpTakeOffSpeed(Speed * 2 * time.deltaTime);

    please help thanks...
     
  2. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    From this one line alone, it looks like you're heavily misusing the syntax of Unity's API and the naming conventions of C#.
    I recommend you take a look at the scripting tutorials.