UserSelectionpaneEnterFX.cs 1.1 KB

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