Exemplo n.º 1
0
    public void LoadPlayer()
    {
        PlayerData data = DataSystem.LoadPlayer();

        health = data.health;

        Vector2 position;

        position.x         = data.position[0];
        position.y         = data.position[1];
        transform.position = position;
        Debug.Log("I'm loading your progress");
    }