Skip to content

Week_2: Make Unity Prefabs

hongsam14 edited this page Sep 24, 2021 · 4 revisions

게이트를 어떻게 구현하고 신호를 전달할 것인가?

신호를 받는 부분(In_Port) 신호를 주는 부분 (Out_Port) 스크립트를 구현. OnTriggerStay2D와 Rigidbody2D를 활용하여 연결을 구현.

변경점.


public GameObject input[2];
public bool bit => input[0].bit & input[1].bit;

를 외부에서 접근하여 값을 변경함.

.

Clone this wiki locally