I have another post on here and I got some help with an error. Now when I run my game I get a new error this
is the error: Object reference not set to an instance of an object
Controller.Start () (at Assets/scripts/Controller.cs:13)
using UnityEngine;
using System.Collections;
public class Controller : MonoBehaviour{
public PlayerStats _jake;
void Start(){
_jake = GetComponent<PlayerStats>();
_jake.level = 3; //This is where the error shows me.
_jake.name = "Jake";
_jake.STR = 50;
_jake.DEX = 55;
_jake.DEF = 50;
_jake.vital = 100;
_jake.Magic = 60;
_jake.luck = 45;
_jake.Speed = 56;
_jake.Agility = 46;
_jake.exp.Cur = 0;
}
}
any help would be great Thanks