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
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
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
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using BetterDefines.Editor.Entity; | |
using UnityEditor; | |
namespace BetterDefines.Editor | |
{ | |
public static class BetterDefinesUtils | |
{ |
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
Shader "Custom/Flow Map" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
// Flow | |
_FlowMap ("Flow Map", 2D) = "white" {} | |
_FlowSpeed ("Flow Speed", float) = 0.05 |
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; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Xml.Serialization; | |
using UnityEngine; | |
namespace Com.Nravo.FlipTheBoard.PersistantStorage | |
{ |
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 HutongGames.PlayMaker; | |
[ActionCategory("NGUI")] | |
[HutongGames.PlayMaker.Tooltip("Updates NGUI Label with provided parameters")] | |
public class NGUI_UpdateLabel : FsmStateAction | |
{ | |
[RequiredField] | |
[CheckForComponent(typeof(UILabel))] | |
[HutongGames.PlayMaker.Tooltip("Game Object to update.")] |