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