- Home /
Parsing Error CS8025
using UnityEngine;
using System.Collections;
public class Weapon : MonoBehaviour {
public enum WeaponSlot
{
Primär,
Sekundär,
Tertiär,
Consumable,
};
public enum WeaponType
{
Knife,
Gun,
MP,
Shotgun,
Sniper,
Rifle,
RocketLauncher,
Grenade,
Consumable
};
// For all:
public string Name = "" ;
public string Description="" ;
public WeaponType weaponType;
public WeaponSlot weaponSlot;
public Texture weaponLogo;
public Texture2D crossHair;
public Texture2D bulletHole;
public int Price = 0;
}
can't figure out why i am getting tons of errors.. guess because of the first one written : Parsing Error CS8025 marking the last } as wrong or something :o any idea whats i've done wrong?
Answer by Kiwasi · Aug 22, 2014 at 04:14 AM
Lines 14 and 28 do not need a ;
Edit : By the error code it looks like you might have miss matched brackets too, but I can't find it in this code sample.
Created a copy of my project and created the script new.. Worked perfectly but now I have to setup every weapon again.. Still would be great to know what's the problem.. Greetz
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Unity bug when switch the platform android to ios 0 Answers
i just got unity and when i open the program i get a error saying transaction is invalid 2 Answers
i get weird rotations on my animated objects using legacy, help? 0 Answers
A node in a childnode? 1 Answer