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.Threading.Tasks; | |
using UnityEngine; | |
using UnityEngine.Android; | |
//see https://docs.unity3d.com/ScriptReference/Android.Permission.html | |
//see https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Android.PermissionCallbacks.html | |
public static class AndroidRuntimeAsyncPermissionService | |
{ | |
public static async Task<PermissionResult> RequestPermissionAsync(string permission) | |
{ |
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 DG.Tweening; | |
using Sirenix.OdinInspector; | |
using TMPro; | |
using UnityEngine; | |
using UnityEngine.UI; | |
/// <summary> | |
/// An input that allows for easy error reporting alongside it | |
/// </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; | |
using DG.Tweening; | |
using Sirenix.OdinInspector; | |
using TMPro; | |
using UnityEngine; | |
using UnityEngine.UI; | |
/// <summary> | |
/// An input that allows for easy error reporting alongside it | |
/// </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
public class DOTweenBehavior : PlayableBehaviour | |
{ | |
public bool tweenPosition; | |
public Vector3 targetPosition; | |
public bool tweenRotation; | |
public Vector3 targetRotation; | |
public Ease ease; | |
private bool firstFrameProcessed; | |
private Sequence sequence; |
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
public static class ErrorHandlingExample | |
{ | |
[FunctionName("ErrorHandlingExample")] | |
public static async Task<dynamic> RunAsync( | |
[HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequest req, ILogger log) | |
{ | |
var errorOccurred = true; | |
if(errorOccurred) | |
{ | |
return new PlayFabErrorObjectResult(1000, "An error has occurred"); |
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
echo off | |
cd c:\ | |
cd c:\OpenSSL-Win32\bin | |
echo. | |
echo. | |
echo -----------------App P12 File Generator--------------- | |
echo. | |
echo This batch file was made to help you easily create all | |
echo the files you need to get your apple app/game up and |