using System.Collections; using System.Collections.Generic; using UnityEngine; public class enter : MonoBehaviour { // Start is called before the first frame update public PanDuan panDuan; public Rotate rotate; public Transform obj; void Start() { } // Update is called once per frame void Update() { } void OnMouseDown() { Debug.LogError("zhixing"); panDuan.SetOne(true); rotate.RotateObjto(obj); obj.gameObject.layer = 0; } }