Exemplo n.º 1
0
    IEnumerator SetWind()
    {
        Sym4DEmulator.Sym4D_W_StartContents(wPort);
        yield return(new WaitForSeconds(0.5f));

        isWind = !isWind;
        if (isWind)
        {
            Sym4DEmulator.Sym4D_W_SendMosionData(100);
        }
        else
        {
            Sym4DEmulator.Sym4D_W_SendMosionData(0);
            Sym4DEmulator.Sym4D_W_EndContents();
        }
    }
Exemplo n.º 2
0
 //오브젝트 삭제될 때 포트 접속 종료 (오브젝트 기준인지 스크립트 기준인지 확인해봐야 함)
 private void OnDestroy()
 {
     Sym4DEmulator.Sym4D_X_EndContents();
     Sym4DEmulator.Sym4D_W_EndContents();
 }
Exemplo n.º 3
0
 //펜 초기화(동작 정지)
 public void OnPenInit()
 {
     Sym4DEmulator.Sym4D_W_EndContents();
 }