유니티 C# 시스템 액션 System.Action 간단 사용법


유니티 C# 시스템 액션 System.Action 간단 사용법

코드 작성 using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class Example : MonoBehaviour { int a = 0; int b = 0; private void Start() { a = 5; b = 4; CheckAction(a + b, ResultAction); } public void CheckAction(int number, Action action) { if(number > 10) { action.Invoke(true); } else { action.Invoke(false); } } public void ResultAction(bool check) {..


원문링크 : 유니티 C# 시스템 액션 System.Action 간단 사용법