Unity3Dでスマホアプリを作ろうとして、unityscriptを使っています。Prime31 からいくつかのプラグインを購入しましたが、それらはすべて正常に動作しますが、サンプル スクリプトは C# で記述されています。
以下の例をJSに変換したい:
var buttons = new string[] { "Save", "Cancel" };
EtceteraBinding.showAlertWithTitleMessageAndButtons( "Alert!", "Do you want to save?", buttons );
私はこのように試しました:
var buttons:String[];
buttons=["Save","Cancel"];
EtceteraBinding.showAlertWithTitleMessageAndButtons( "Alert!", "Do you want to save?", buttons );
これは良くありません。コース["Save","Cancel"]
は最初のボタンに表示され、他のボタンには何も表示されませんか?
私は何を間違っていますか?