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
syntax on | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set autoindent | |
set smartindent | |
set ignorecase | |
set smartcase |
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
#pragma strict | |
private var vibDir : Vector3; | |
private var vibPower : float; | |
private var vibTimer : float; | |
function OnCollisionEnter(collision : Collision) { | |
var diff = collision.transform.position - transform.position; | |
vibDir = -diff.normalized; | |
vibPower = 2.0; |
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.IO; | |
public class NewBehaviourScript : MonoBehaviour { | |
public void WriteTest(string path, byte[] data) { | |
File.WriteAllBytes(path, data); | |
} | |
} |
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
function Update() { | |
var controller : CharacterController = GetComponent(CharacterController); | |
controller.Move(Vector3(0.0, -9.0, 0.0) * Time.deltaTime); | |
if (controller.isGrounded) Debug.Log("We are grounded"); | |
} |
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
void installAdBannerInternal() { | |
// レイアウトをでっち上げる。 | |
RelativeLayout layout = new RelativeLayout(this); | |
addContentView(layout, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); | |
layout.setGravity(Gravity.BOTTOM); | |
// バナー広告を配置。 | |
adBanner = new AdView(this, AdSize.BANNER, adPublisher); | |
layout.addView(adBanner); | |
// 広告をリクエストする。 | |
adBanner.loadAd(new AdRequest()); |
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
#!/bin/sh | |
find $(pwd) \( -name '*.js' -or -name '*.cs' \) -exec ls {} \&\& xattr -w -v com.apple.TextEncoding utf-8 {} + |
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
// 疑似コードです!! | |
LinearLayout layout = new LinearLayout(this); | |
layout.setGravity(Gravity.TOP); | |
addContentView(layout, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); | |
layout.addView(new View(), new LayoutParams(LayoutParams.FILL_PARENT, 400)); | |
layout.addView(mAdView, new LayoutParams(LayoutParams.FILL_PARENT, 80)); |
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
[ui] | |
username = keijiro <keijiro@gmail.com> | |
[extensions] | |
graphlog = |
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
[http] | |
postBuffer = 104857600 | |
[user] | |
name = keijiro | |
email = keijiro@gmail.com |