2022-09-05 11:46:08 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class SaveWeightsButton : MonoBehaviour
|
|
|
|
{
|
|
|
|
public GameObject Agent;
|
|
|
|
public void onButtonClicked()
|
|
|
|
{
|
2022-09-05 12:22:34 +00:00
|
|
|
// set saveNow to active.
|
|
|
|
Agent.GetComponent<AgentWithGun>().saveNow = 1;
|
2022-09-05 11:46:08 +00:00
|
|
|
}
|
|
|
|
}
|