Hello I was working on character system for my new game but I am getting script needs to derive from monobehaviour error when I try to attach it.
Here is the code:
#pragma strict
var player1 : Character;
function Start ()
{
player1.name = "Esporta";
player1.money = 100;
player1.level = 1;
player1.job = "unemployed";
}
//
//
//
public class Character : MonoBehaviour
{
var name;
var money;
var level;
var job;
}