2016-06-09 6 views
0

작은 멀티 플랫폼 게임을 작성하고 싶습니다. 내 게임용 Contruct2 플러그인을 만들었으며 다른 운영체제에 대한 구체적인 방법이 있습니다.Construct2 - 장치 유형 감지

어떻게 플러그 인 runtime.js에서 장치 유형을 감지 할 수 있습니까?

답변

0

발견 된 솔루션 :

if (this.runtime.isAndroid) { 
    // ... 
} else if (this.runtime.isiOS) { 
    // ... 
} else if (this.runtime.isWindowsPhone8 || this.runtime.isWindowsPhone81) { 
    // ... 
}