This file contains hidden or 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
| namespace Fabric.Internal.Editor.View.Animation | |
| { | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| using System; | |
| public class Driver | |
| { | |
| private uint invocationCount = 0; |
This file contains hidden or 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 void ShowToast(string text) | |
| { | |
| if (Application.platform == RuntimePlatform.Android) | |
| { | |
| AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
| AndroidJavaObject activity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"); | |
| activity.Call("runOnUiThread", new AndroidJavaRunnable( | |
| ()=> | |
| { |
This file contains hidden or 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
| private const string LatestReleaseApiURL = "https://api.github.com/repos/getsocial-im/getsocial-unity-sdk/releases/latest"; | |
| private const string LatestReleaseURL = "https://github.com/getsocial-im/getsocial-unity-sdk/releases/latest"; | |
| [MenuItem(GetSocialMenuParent + "GetSocial/Check for Updates...", false, priority: 2000)] | |
| public static void CheckForUpdates() | |
| { | |
| CheckForUpdatesOnReleaseRepo(); | |
| } | |
| private static void CheckForUpdatesOnReleaseRepo() |
This file contains hidden or 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; | |
| public class Seek : MonoBehaviour | |
| { | |
| private Transform pointer; | |
| public float speed = 1.0f; | |
| public float mass = 1.0f; | |
| private Vector2 curVelocity; |
This file contains hidden or 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_ANDROID | |
| using UnityEngine; | |
| using System; | |
| public static class AndroidNativePicker | |
| { | |
| public delegate void OnDatePicked(int year,int month,int day); | |
| public delegate void OnTimePicked(int hourOfDay, int minute); | |
| public static void ShowDatePicker(OnDatePicked callback) |
This file contains hidden or 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 | |
| MAIN=develop | |
| BRANCHES=$(git branch --merged $MAIN | grep -v -e 'master\|staging\|develop\|\*') | |
| echo Branches merged into $MAIN: | |
| echo $BRANCHES | tr " " "\n" | |
| read -p "Delete these branches (y/n)? " answer |
This file contains hidden or 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.IO; | |
| using UnityEditor; | |
| public static class DumpEditorTextures | |
| { | |
| const string AssetsFolder = "Assets"; | |
| const string TexturesDestFolderNamePro = "TexturesPro"; | |
| const string TexturesDestFolderNameNormal = "TexturesNormal"; | |
| static readonly string TexturesDestPathPro = Path.Combine(AssetsFolder, TexturesDestFolderNamePro); |
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class MyPluginIsBananas : MonoBehaviour | |
| { | |
| const string ToastClassName = "android.widget.Toast"; | |
| public void OnMyButtonClick() | |
| { |