This file contains hidden or 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; | |
public class FlyCamera : MonoBehaviour | |
{ | |
/* | |
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care. | |
Converted to C# 27-02-13 - no credit wanted. | |
Reformatted and cleaned by Ryan Breaker 23-6-18 | |
Added Q/E keys to move up/down and only move mouse when right button clicked by Julia Schwarz 29-3-20 |
This file contains hidden or 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; | |
public class FlyCamera : MonoBehaviour { | |
/* | |
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care. | |
Converted to C# 27-02-13 - no credit wanted. | |
Simple flycam I made, since I couldn't find any others made public. | |
Made simple to use (drag and drop, done) for regular keyboard layout |
This file contains hidden or 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 serializeBundle(final Bundle bundle) { | |
String base64 = null; | |
final Parcel parcel = Parcel.obtain(); | |
try { | |
parcel.writeBundle(bundle); | |
final ByteArrayOutputStream bos = new ByteArrayOutputStream(); | |
final GZIPOutputStream zos = new GZIPOutputStream(new BufferedOutputStream(bos)); | |
zos.write(parcel.marshall()); | |
zos.close(); | |
base64 = Base64.encodeToString(bos.toByteArray(), 0); |
This file contains hidden or 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
$ adb shell | |
#sample | |
am start -a android.intent.action.CALL -d tel://000-0000 | |
am start -a android.intent.action.SEND -d "some message" -t text/plain | |
am start -a android.intent.action.VIEW -d geo:0,0?q=Tokyo | |
am start -n com.android.browser/.BrowserActivity |