Search Unity

2D Movement Doesnt work

Discussion in '2D' started by Unknown6666, Jul 3, 2020.

  1. Unknown6666

    Unknown6666

    Joined:
    Jul 3, 2020
    Posts:
    2
    the movement skript i use doesnt really work it gives 6 errors:
    Assets\CharacterController2D1.cs(27,3): error CS0579: Duplicate 'System.Serializable' attribute

    Assets\CharacterController2D1.cs(136,15): error CS0111: Type 'CharacterController2D' already defines a member called 'Flip' with the same parameter types

    Assets\CharacterController2D1.cs(64,14): error CS0111: Type 'CharacterController2D' already defines a member called 'Move' with the same parameter types

    Assets\CharacterController2D1.cs(44,15): error CS0111: Type 'CharacterController2D' already defines a member called 'FixedUpdate' with the same parameter types

    Assets\CharacterController2D1.cs(33,15): error CS0111: Type 'CharacterController2D' already defines a member called 'Awake' with the same parameter types

    Assets\CharacterController2D1.cs(4,14): error CS0101: The namespace '<global namespace>' already contains a definition for 'CharacterController2D'

    Could someone please help me
     
  2. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    535
    you copy pasted 2x the same code on the script