public void SetLevelInfo(OnClickWalk info)
 {
     loadLevel  = info.loadLevel;
     health     = info.health;
     gold       = info.gold;
     time       = info.time;
     NewRecipes = info.NewRecipes;
     Stars      = info.Stars;
 }
    public void SetLevelInfo(OnClickWalk info)
    {
        theLevel = info;

        GameObject[] objects = GameObject.FindGameObjectsWithTag("Respawn");

        for (int i = 0; i < objects.Length; i++) //If There Are More Objects With This Tag.
        {
            if (objects[i].GetComponent <LevelEventInfo>() != null)
            {
                objects[i].GetComponent <LevelEventInfo>().SetLevelInfo(info);
            }
        }
    }