using System.Collections; using System.Collections.Generic; using UnityEngine; public class UserSelectionpaneClickFX : MonoBehaviour { public Vector3 moveToEndV3; public Quaternion moevToendRotV3; public GameObject fx; void Start() { fx.SetActive(false); } // Update is called once per frame void Update() { } public string currentEnterStr; public string LastStr; private bool isOne; public void userEnterClick(bool isEnter, string buttonName) { fx.SetActive(true); //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) { if(currentUserClikcStr!=str) { fx.SetActive(true); this.gameObject.transform.position = moveToEndV3; } currentUserClikcStr = str; } }