using UnityEngine;
using System.Collections;
public class s : MonoBehaviour {
public Transform start;
public Transform end;
public bool ISTRUE = false;
// Use this for initialization
void Start() {
}
// Update is called once per frame
void Update() {
if (!ISTRUE)
return;
start.position = Vector3.Lerp(start.position, end.position, Time.deltaTime);
}
public void GGG()
{
ISTRUE = true;
}
}
UGUI里面button的移动
最新推荐文章于 2021-09-04 15:06:44 发布