What’s wrong with this I tried so much
Assets\1\script\Unit00.cs(13,8): error CS1585: Member modifier ‘public’ must precede the member type and name
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace COM.Yasen.Player.Units
{
[CreateAssetMenu(fileName = "New Unit", menuName ="ScriptableObject")]
0references
public class unit : ScriptableObject
{
1 references
public enum unitType
{
Worker,
Warrior,
Healer
};
public bool isPlayerUnit;
public unitType Type;
public new string name;
public GameObject unitPrefab;
public int cost;
public int attack;
public int health;
public int aromr;
}
}