Exemplo n.º 1
0
    private void Awake()
    {
        //마우스 커서 안보이게 하고, 현재 위치 고정.
        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Locked;

        rotateToMouse = GetComponent <RotateToMouse>();
        animator      = GetComponent <PlayerAnimatorController>();
        weapon        = GetComponentInChildren <WeaponAssaultRifle>();
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Awake()
    {
        Application.runInBackground = true; // 현재 윈도우가 선택되어 있지 않을 때도 실행하도록 함(default 값은 false)

        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Locked; //커서를 보이지 않게 커서 위치 고정(화면 밖으로 나가지 않게)

        rotateToMouse = this.GetComponent <RotateToMouse>();
        movement      = this.GetComponent <Movement>();
        status        = this.GetComponent <Status>();
        weapon        = this.GetComponentInChildren <WeaponAssaultRifle>();
    }