UserSelectionpaneClickFX.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class UserSelectionpaneClickFX : MonoBehaviour
  5. {
  6. public Vector3 moveToEndV3;
  7. public Quaternion moevToendRotV3;
  8. public GameObject fx;
  9. void Start()
  10. {
  11. fx.SetActive(false);
  12. }
  13. // Update is called once per frame
  14. void Update()
  15. {
  16. }
  17. public string currentEnterStr;
  18. public string LastStr;
  19. private bool isOne;
  20. public void userEnterClick(bool isEnter, string buttonName)
  21. {
  22. fx.SetActive(true);
  23. //currentEnterStr = buttonName;
  24. //if (currentEnterStr == currentUserClikcStr)
  25. //{
  26. // return;
  27. //}
  28. //else
  29. //{
  30. // if (isEnter)
  31. // {
  32. // this.gameObject.transform.position = moveToEndV3;
  33. // this.gameObject.transform.rotation = moevToendRotV3;
  34. // }
  35. // else
  36. // {
  37. // }
  38. //}
  39. }
  40. private string currentUserClikcStr;
  41. public void userClickButtonStr(string str)
  42. {
  43. if(currentUserClikcStr!=str)
  44. {
  45. fx.SetActive(true);
  46. this.gameObject.transform.position = moveToEndV3;
  47. }
  48. currentUserClikcStr = str;
  49. }
  50. }