Esempio n. 1
0
 void Start()
 {
     Rigid                = GetComponent <Rigidbody>();          // 리지드 바디 연결
     applySpeed           = walkSpeed;                           // 시작 스피드 는 걷는 스피드.
     capsulecollider      = GetComponent <CapsuleCollider>();    // 이중 방지를 위한 콜라이더 받기
     originPosY           = theCamara.transform.localPosition.y; // 카메라 로컬 포지션 y를 받기
     applyCrouchPosY      = originPosY;                          // 시작할땐 서있는 상태여야 하니까
     thsSatatusController = FindObjectOfType <StatusControler>();
 }
Esempio n. 2
0
 void Start()
 {
     Debug.Log(this.gameObject.name);
     status = FindObjectOfType <StatusControler>(); // 이런게 다 찾아서 끌어오는것.
 }