void Awake()
    {
        // Set environment variables
        string jsonPath = config.GetConfigPath();
        string json     = null;

        try
        {
            json = File.ReadAllText(jsonPath);
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
        }

        if (json != null)
        {
            config = JsonUtility.FromJson <FoxChickenConfig>(json);
            //debug.Log("Penalty: " + config.penalty);
        }
        else
        {
            Debug.Log("JSON NOT FOUND");
            config = null;
        }

        InitObjectsByScene();
        InitTreesValues();
        InitDogValues();
    }
    private void Awake()
    {
        FoxChickenConfig config = spawnDogs.config;

        LoadConfig(config);

        // Finds and assigns rewardStatus and penaltyStatus using command line args.
        // Note: this only works if using an executable when training. Otherwise, the editor values are used.
        GetLevelArgs();

        // Show Reward and Penalty on terminal
        Debug.Log("Reward: " + rewardStatus.ToString() + " -- Penalty: " + penaltyStatus.ToString());

        // Show Reward and Penalty on screen
        if (textRewardController)
        {
            textRewardController.UpdateText(rewardStatus.ToString(), penaltyStatus.ToString());
        }
    }
    private void LoadConfig(FoxChickenConfig config)
    {
        if (config == null)
        {
            rewardStatus  = RewardStatus.Low;
            penaltyStatus = PenaltyStatus.Low;
        }
        else
        {
            if (config.reward.ToLower() == "low")
            {
                rewardStatus = RewardStatus.Low;
            }
            else if (config.reward.ToLower() == "medium")
            {
                rewardStatus = RewardStatus.Medium;
            }
            else
            {
                rewardStatus = RewardStatus.High;
            }

            if (config.penalty.ToLower() == "low")
            {
                penaltyStatus = PenaltyStatus.Low;
            }
            else if (config.penalty.ToLower() == "medium")
            {
                penaltyStatus = PenaltyStatus.Medium;
            }
            else
            {
                penaltyStatus = PenaltyStatus.High;
            }
        }
    }