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 UnityEditor; | |
using UnityEditor.Callbacks; | |
namespace Nikkolai | |
{ | |
public class BuildPostProcessEditor | |
{ | |
[PostProcessBuild(1)] | |
public static void IncrementPatchVersion (BuildTarget buildTarget, string buildPath) |
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 UnityEditor; | |
namespace UnityEngine.Purchasing | |
{ | |
public class DisableUpdateNotice | |
{ | |
[MenuItem("Window/Unity IAP/Ignore Updates (30 days)", false, 0)] | |
static void DoDisableUpdateNotice() | |
{ | |
PlayerPrefs.SetString("PackageUpdaterLastChecked68207", System.DateTime.UtcNow.AddDays(30).ToString()); |
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
#if NETFX_CORE // Workaround to support changes in the .Net reflection API for Windows Store Apps | |
using System; | |
using System.Reflection; | |
namespace UnityEngine.Analytics.Experimental.Tracker | |
{ | |
public static class TypeExtensions | |
{ | |
public static PropertyInfo GetProperty(this Type type, string propertyName) |
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; | |
[RequireComponent(typeof(MouseLook))] | |
public class CursorController : MonoBehaviour | |
{ | |
MouseLook m_MouseLook; | |
public bool locked { get; private set; } | |
void OnEnable () |
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
#if !UNITY_CLOUD_BUILD | |
using System.Collections.Generic; | |
namespace UnityEngine.CloudBuild | |
{ | |
/// <summary> | |
/// A stub of the <see cref="T:UnityEngine.CloudBuild.BuildManifestObject"/> class, | |
/// available only on Unity Cloud Build servers. | |
/// <para>Pre export methods must take a single parameter of this type in order for the | |
/// method to be called prior to building a project in Unity Cloud Build. |
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; | |
namespace Nikkolai | |
{ | |
public abstract class SingletonBehaviour<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
public static T instance { get { return GetInstance(); } } | |
[SerializeField, Tooltip("Determines whether the GameObject should be destroyed on scene loads.")] | |
protected bool m_DestroyOnLoad; |
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 FirstPersonController = UnityStandardAssets.Characters.FirstPerson.FirstPersonController; | |
public class CursorManager : MonoBehaviour | |
{ | |
public FirstPersonController fpsController; | |
public bool locked { get; private set; } | |
void OnEnable () |
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; | |
namespace com.wcoastsands | |
{ | |
public static class Extensions | |
{ | |
#region Object Extensions | |
public static T FindObjectOfType <T> (this Object unityObject) where T : Object |
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; | |
namespace #COMPANYNAMESPACE#.#PRODUCTNAMESPACE# | |
{ | |
public class #SCRIPTNAME# : MonoBehaviour | |
{ | |
} | |
} |
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/bash | |
clear; | |
adb logcat -c; | |
adb logcat -sv color time Unity UnityAds; |