Aimbot-PPO/Aimbot-PPO-MultiScene/Assets/Script/StartSeneData.cs

47 lines
1.3 KiB
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StartSeneData : MonoBehaviour
{
public string LoadDirDate = "0";
public string LoadDirTime = "0";
[Header("Default Rewards")]
public float nonRewardDefault = -0.05f;
public float shootRewardDefault = -0.06f;
public float shootWithoutReadyRewardDefault = -0.06f;
public float hitRewardDefault = 5.0f;
public float killRewardDefault = 10.0f;
public float winRewardDefault = 20.0f;
public float loseRewardDefault = -10.0f;
[Header("Rewards for Transfer")]
public float nonReward;
public float shootReward;
public float shootWithoutReadyReward;
public float hitReward;
public float killReward;
public float winReward;
public float loseReward;
[Header("Decision Period")]
public int DecisionPeriod = 1;
public bool ActionsBetweenDecisions = true;
private void Start()
{
nonReward = nonRewardDefault;
shootReward = shootRewardDefault;
shootWithoutReadyReward = shootWithoutReadyRewardDefault;
hitReward = hitRewardDefault;
killReward = killRewardDefault;
winReward = winRewardDefault;
loseReward = loseRewardDefault;
}
// Update is called once per frame
void Awake()
{
DontDestroyOnLoad(transform.gameObject);
}
}