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 System; | |
namespace Extensions.Utils | |
{ | |
public static class ActionExtensions | |
{ | |
/// <summary> | |
/// Safe invocation of all delegates stored in the passed <see cref="Action"/> delegate. | |
/// </summary> | |
public static void InvokeSafe(this Action action) |
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 System; | |
using System.Linq; | |
[Flags] | |
public enum Enemy | |
{ | |
None = 0, | |
Goblin = 1, | |
Wizard = 2, | |
Dragon = 4 |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using UnityEditor.TestTools.TestRunner.Api; | |
using UnityEngine; | |
using UnityEngine.TestTools; | |
namespace UnityTestExtensions | |
{ | |
/// <summary> |
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 System.IO; | |
using UnityEditor.PackageManager; | |
using UnityEngine; | |
namespace UnityEditor.Extensions | |
{ | |
#if UNITY_2017_3_OR_NEWER | |
/// <summary> | |
/// Editor extension for embedding packages as a local copy in the project. |
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 System.IO; | |
using UnityEditor.PackageManager; | |
using UnityEngine; | |
namespace UnityEditor.Extensions | |
{ | |
#if UNITY_2017_3_OR_NEWER | |
/// <summary> | |
/// Editor extension for embedding packages as a local copy in the project. |
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 System.IO; | |
using UnityEditor.PackageManager; | |
using UnityEngine; | |
namespace UnityEditor.Extensions | |
{ | |
/// <summary> | |
/// Editor extension for embedding packages as a local copy in the project. | |
/// This can be useful in case you want to modify the package's source code. | |
/// </summary> |
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
1 12139 Runnable 949 378 main | |
at com.unity3d.player.UnityPlayer.UnitySendMessage(Native Method) | |
at com.androidnative.AndroidNativeBridge.onStop(AndroidNativeBridge.java:186) | |
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1278) | |
at android.app.Activity.performStop(Activity.java:6395) | |
at android.app.ActivityThread.handleSleeping(ActivityThread.java:3621) | |
at android.app.ActivityThread.-wrap19(ActivityThread.java) | |
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1519) | |
at android.os.Handler.dispatchMessage(Handler.java:102) |
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 System.IO; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
using UnityEngine; | |
public static class PostBuildHelper | |
{ | |
[PostProcessBuild] |
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 System.IO; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
public class ConsoleWriter : TextWriter | |
{ | |
public override void Write(char value) | |
{ | |
} |
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 System.IO; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
/// <summary> | |
/// Helper class for removing UnityEngine.xml that is included in iOS builds (bug) | |
/// </summary> | |
public static class UnityEngineDocsRemover | |
{ | |
[PostProcessBuild] |
NewerOlder