#인터페이스 https://learn.microsoft.com/ko-kr/dotnet/csharp/programming-guide/interfaces/explicit-interface-implementation 명시적 인터페이스 구현 - C# 프로그래밍 가이드 클래스는 C#에서 동일한 시그니처를 가진 멤버를 포함하는 인터페이스를 구현할 수 있습니다. 명시적 구현에서는 하나의 인터페이스에 고유한 클래스 멤버를 만듭니다. learn.microsoft.com using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; ..
#skill(cooltime 적용) #cooltime이 감소되면 이미지의 fillamount 감소 #코루틴을 이용해 시간이 지남에 따라 cooltime이 감소 using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class UISkillButton : MonoBehaviour { private Button btn; private bool isCoolTime; private float coolTime = 5f; public Image imgCooltime; public TMP_Text txtCoolTime; public System.Action ..

#1. Button 구현 #2.Tap Menu 구현 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; public class UIMenu : MonoBehaviour { public enum eMenuType { None = -1, Shop, Item } public Button btn; public TMP_Text txtName; //메뉴 명 public GameObject focusGo; //포커스 이미지 public eMenuType menuType; //type을 상수로 public System.Action onClick; //이벤트 정의 pri..

#class Graph -생성된 node들을 가지고있는 Listnodes 생성 AddVertex는 매개변수로 받은 node를 nodes에 Add AddEdge는 매개변수로 받은 Node a와 Node b를 a.adjacency에 추가(서로 같은 node들은 인접정점이 될수 없음) PrintAll- 모두 출력. for반복문으로 nodes.Count만큼 반복하며 nodes의인덱스의data 출력. foreach를 통해 Node a=this.nodes[i]의 요소들( .data) 출력(가시성을 위해 -"{0}"으로 이어져있음을 보여주자) #class Node-data를 매개변수로 받아 data를 가지고있는 node로 생성됨(생성자), 정점들끼리 이어져있는 인접정점 Listadjacency가 생성됨 #class ..