So I have a Player class. Here's the gist of it:
using UnityEngine;
using System.Collections;
public class Player {
//Left Stick
private string _horizontalAxis;
public string horizontalAxis {
get { return _horizontalAxis; }
set {_horizontalAxis = value; }
}
public Player() {
_horizontalAxis = "Horizontal";
_verticalAxis = "Vertical";
}
}
In my character motor script, I have this:
private Player _player;
void Awake() {
_player = new Player();
}
For some reason, Unity crashes when do this. I have narrowed it down to this group, and can't find the problem. What might I be doing wrong?