Skip to content

Instantly share code, notes, and snippets.

View kilj's full-sized avatar

Oleksandr Shapoval kilj

View GitHub Profile
adb logcat -s Unity$ ActivityManager PackageManager dalvikvm DEBUG
@kilj
kilj / UnityCloudBuildManifest.cs
Created April 25, 2017 19:58
Unity Build Cloud: tiny script for showing buildNumber, targetName, etc on phone screen (for example).
using System;
using UnityEngine;
[Serializable]
public class UnityCloudBuildManifest
{
public string scmCommitId;
public string scmBranch;
public string buildNumber;
public string buildStartTime;
@kilj
kilj / WASDMoving.cs
Last active November 25, 2017 13:02
Unity mouselook + WASD + camera.
// Based on work of FatiguedArtist from https://forum.unity.com/threads/a-free-simple-smooth-mouselook.73117/
// Added simple WASD controlling, which can be enabled by pressing right mouse button.
// Deleted comments and some fields.
using UnityEngine;
public class WASDMoving : MonoBehaviour
{
public Vector2 clampInDegrees = new Vector2(360, 180);
public Vector2 sensitivity = new Vector2(2, 2);