public void StateChange(GameInterFace nextState) { actState = nextState; Debug.Log(actState); }
// Use this for initialization void Start() { actState = new GameStartState(this); gData = GetComponent <GameData>(); }