SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
838 B

4 years ago
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class Change : MonoBehaviour
  6. {
  7. public GameObject colorPa;
  8. public Material penColor;
  9. // Start is called before the first frame update
  10. private void Awake()
  11. {
  12. colorPa.GetComponent<GameObject>();
  13. }
  14. // Update is called once per frame
  15. void Update()
  16. {
  17. }
  18. public void OpenButton()
  19. {
  20. colorPa.SetActive(true);
  21. }
  22. public void CloseButton()
  23. {
  24. colorPa.SetActive(false);
  25. }
  26. public void ChangeRed()
  27. {
  28. penColor.SetColor("_Color", Color.red);
  29. }
  30. public void ChangeBlue()
  31. {
  32. penColor.SetColor("_Color", Color.blue);
  33. }
  34. public void ChangeBlack()
  35. {
  36. penColor.SetColor("_Color", Color.black);
  37. }
  38. }