void Start() { savedData = new SaveAssistant(this.gameObject, this.gameObject.name + "." + this.GetType().Name); savedData.LoadPosition(this.gameObject); startingPosition = gameObject.transform.position.x; directionLeft = true; live = savedData.LoadValue <bool> ("live", true); }
void Start() { playerSaver = new SaveAssistant(player, "player"); playerSaver.LoadPosition(player); }