
Post processing Vignette

이 게임에서 쓸만한 건 아니고, 그냥 신선한 카메라 움직임
void SetChildrenButton()
{
buttons.Clear(); // 기존 리스트 초기화
// 모든 자식 오브젝트 확인
for (int i = 0; i < transform.childCount; i++)
{
Transform child = transform.GetChild(i);
if (child.CompareTag("Button")) // 특정 태그와 일치하는지 확인
{
buttons.Add(child.gameObject.transform);
}
}
}
버튼 리스트 초기화 코드

public class MeleeAttackButton : Button
{
public override void OnClick()
{
Debug.Log("Attack!");
}
}
버튼 작동 뼈대도 만들어놓음
