You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
539 B

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;
}
}