This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using Chronos; | |
public class TimeControlTest : BaseBehaviour { | |
private float moveSpeed =1.0f; | |
void Update () { | |
//この書き方だと、キー操作しても期待通りの時間制御ができない。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private String getDefaultLocale() { | |
// return "en-US"; | |
return "ja-JP"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.library' | |
android { | |
compileSdkVersion 24 | |
buildToolsVersion "24.0.0" | |
defaultConfig { | |
minSdkVersion 19 | |
targetSdkVersion 24 | |
versionCode 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package moduletest.test.com.nativeplugin; | |
//import org.junit.Test; | |
//import static org.junit.Assert.*; | |
/** | |
* To work on unit tests, switch the Test Artifact in the Build Variants view. | |
*/ | |
public class ExampleUnitTest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package moduletest.test.com.nativeplugin; | |
import android.util.Log; | |
import com.unity3d.player.UnityPlayer; | |
public class NativeMethod { | |
public static void staticFunction(){ | |
Log.e("[Unity Test]","Static Method has been called!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.unity3d.player" | |
android:installLocation="preferExternal" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<supports-screens | |
android:smallScreens="true" | |
android:normalScreens="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
public class TestObject1 : MonoBehaviour { | |
[SerializeField] | |
private Text text; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
public class TestObject2 : MonoBehaviour { | |
[SerializeField] | |
private Text text; | |
public void callNonStaticFunction(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.unity3d.player" | |
android:installLocation="preferExternal" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<supports-screens | |
android:smallScreens="true" | |
android:normalScreens="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//apply plugin: 'com.android.application' | |
apply plugin: 'com.android.library' | |
repositories { | |
maven { | |
name = 'Maven Central Repo' //optional name | |
url = 'http://repo1.maven.org/maven2/' | |
} | |
} | |
dependencies { |