using System.Collections; using System.Collections.Generic; using UnityEngine; public class RobotManager : MonoBehaviour { public static RobotManager Instance { get; private set; } public Animator animator; public GameObject robot_object; private void Awake() { Instance = this; } public void ShowRobot() { robot_object.SetActive(true); } public void HideRobot() { robot_object.SetActive(false); } public void DoAnimation() { animator.SetBool("move", true); } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }