Step 1: Set the Platform to either iOS or Android.
- Select File > Build Settings... from the Unity menu.
- Select iOS or Android from the Platform list.
- Select Switch Platform.
Step 2: Enable Unity Ads through the Services window.
using UnityEngine; | |
using FirstPersonController = UnityStandardAssets.Characters.FirstPerson.FirstPersonController; | |
public class CursorManager : MonoBehaviour | |
{ | |
public FirstPersonController fpsController; | |
public bool locked { get; private set; } | |
void OnEnable () |
using UnityEngine; | |
using System.Collections; | |
namespace #COMPANYNAMESPACE#.#PRODUCTNAMESPACE# | |
{ | |
public class #SCRIPTNAME# : MonoBehaviour | |
{ | |
} | |
} |
using UnityEngine; | |
[RequireComponent(typeof(MouseLook))] | |
public class CursorController : MonoBehaviour | |
{ | |
MouseLook m_MouseLook; | |
public bool locked { get; private set; } | |
void OnEnable () |
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()); |
#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) |
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 |
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; |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
namespace Nikkolai | |
{ | |
public class BuildPostProcessEditor | |
{ | |
[PostProcessBuild(1)] | |
public static void IncrementPatchVersion (BuildTarget buildTarget, string buildPath) |
# .gitignore file for Unity project directories | |
# by Nikkolai Davenport, http://github.com/wcoastsands | |
# | |
# See the following article for instructions on how to use Git for Unity source control: | |
# http://fixbyproximity.com/2013/01/21/git-unity-3d-source-control/ | |
[Ll]ibrary/ | |
[Tt]emp/ | |
[Oo]bj/ | |
[Bb]uilds/ |