Skip to content

Instantly share code, notes, and snippets.

View flushpot1125's full-sized avatar

Limes2018 flushpot1125

View GitHub Profile
using UnityEngine;
using System.Collections;
using Chronos;
public class TimeControlTest : BaseBehaviour {
private float moveSpeed =1.0f;
void Update () {
//この書き方だと、キー操作しても期待通りの時間制御ができない。
private String getDefaultLocale() {
// return "en-US";
return "ja-JP";
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
minSdkVersion 19
targetSdkVersion 24
versionCode 1
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 {
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!");
<?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"
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class TestObject1 : MonoBehaviour {
[SerializeField]
private Text text;
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class TestObject2 : MonoBehaviour {
[SerializeField]
private Text text;
public void callNonStaticFunction(){
<?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"
//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 {