예제 #1
0
파일: Forest6.cs 프로젝트: nandam1231/minsu
 // Start is called before the first frame update
 void Start()
 {
     mPlayer  = GameObject.FindGameObjectWithTag("Player");
     mBox     = GameObject.FindGameObjectWithTag("InteractObj");
     mBoxPull = mBox.GetComponent <BoxPull>();
 }
예제 #2
0
 bool IsPush;   //button이 눌리면 true, 떼지면 false
 void Start()
 {
     mBoxPull    = GetComponent <BoxPull>(); //BoxPull script 가져오기
     mPlayerCtrl = GetComponent <PlayerCtrl>();
 }