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);
    }
示例#2
0
 void Start()
 {
     playerSaver = new SaveAssistant(player, "player");
     playerSaver.LoadPosition(player);
 }