using System.Collections; using System.Collections.Generic; using UnityEngine; public class UserSelectionpaneEnterFX : MonoBehaviour { // Start is called before the first frame update public Vector3 moveToEndV3; public Quaternion moevToendRotV3; void Start() { } // Update is called once per frame void Update() { } public string currentEnterStr; public string LastStr; private bool isOne; public void userEnterClick(bool isEnter, string buttonName) { currentEnterStr = buttonName; if (currentEnterStr == currentUserClikcStr) { return; } else { if (isEnter) { this.gameObject.transform.position = moveToEndV3; this.gameObject.transform.rotation = moevToendRotV3; } else { } } } private string currentUserClikcStr; public void userClickButtonStr(string str) { currentUserClikcStr = str; } }