Unity启用/关闭脚本script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class gameController : MonoBehaviour
{
public GameObject cube;
void Start()
{
cube.GetComponent<translation1>().enabled = false;
}
public void clickSubmit()
{
cube.GetComponent<translation1>().enabled = true;
}