Aimbot-ParallelEnv/Assets/Script/InGame/SaveWeightsButton.cs

14 lines
296 B
C#
Raw Normal View History

2022-10-25 19:07:39 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SaveWeightsButton : MonoBehaviour
{
public GameObject Agent;
public void onButtonClicked()
{
// set saveNow to active.
Agent.GetComponent<AgentWithGun>().saveNow = 1;
}
}