Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Posts
    100

    2D Unity 4.5 Buzzsaw_004_character_controller_1_stub

    I'm getting a console CS8025: Parsing error on my ControllerParameters2D.cs. I can't figure it out.

    This is my code.

    using System;
    using UnityEngine;
    using System.Collections;

    {Serializable]
    public class ControllerParameters2D
    {
    public enum JumpBehavior
    {
    CanJumpOnGround,
    CanJumpAnywhere,
    CantJump
    }

    public Vector2 MaxVelocity = new Vector2(float.MaxValue, float.MaxValue);

    [Range(0, 90)]
    public float SlopeLimit = 30;

    public float Gravity = -25;

    public JumpBehavior JumpRestrictions;

    public float JumpFrequency = .25f;

  2. #2
    Join Date
    Sep 2003
    Posts
    100
    Found the error.

    {Serializable] should be [Serializable]

    Sean

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •