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 UnityEngine.UI; | |
// Set _ScaleAndOffset in the shader so that our math works as expected with textures in atlases :) | |
[ExecuteInEditMode] | |
public class ImageFadeIn : MonoBehaviour | |
{ | |
[SerializeField] | |
private Image target; |
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 class TextRevealer : MonoBehaviour { | |
public Text text; | |
void Start () { | |
StartCoroutine(RevealText()); | |
} | |
IEnumerator RevealText() { | |
var originalString = text.text; |
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 class TextRevealer : MonoBehaviour { | |
public Text text; | |
void Start () { | |
StartCoroutine(RevealText()); | |
} | |
IEnumerator RevealText() { | |
var originalString = text.text; |
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.Text; | |
using UnityEngine; | |
using UnityEngine.Events; | |
using UnityEngine.UI; | |
public class TextRevealer : MonoBehaviour | |
{ | |
[UnityEngine.Header("Configuration")] | |
public int numCharactersFade = 3; |
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.Collections; | |
public class TransformShaker : MonoBehaviour | |
{ | |
public Vector3 defaultDirection = new Vector3(0,1,0); | |
public float defaultSeconds = 0.3f; | |
public float defaultAmplitude = 0.05f; | |
public float defaultPeriod = 0.02f; | |
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.Collections; | |
using UnityEngine.UI; | |
public class ImageCinematic : MonoBehaviour | |
{ | |
[System.Serializable] | |
private struct CinematicStep | |
{ | |
public float seconds; |
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.Collections; | |
[ExecuteInEditMode] | |
public class AutoSnapToGrid2D : MonoBehaviour | |
{ | |
public Vector2 gridSize = new Vector2(0.32f, 0.32f); | |
void Update() | |
{ |
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; | |
public static class Easing | |
{ | |
// Adapted from source : http://www.robertpenner.com/easing/ | |
public static float Ease(double linearStep, float acceleration, EasingType type) | |
{ | |
float easedStep = acceleration > 0 ? EaseIn(linearStep, type) : | |
acceleration < 0 ? EaseOut(linearStep, type) : |
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.Collections; | |
using UnityEngine.UI; | |
[ExecuteInEditMode] | |
public class BuildNumberLabel : MonoBehaviour | |
{ | |
#region inspector properties | |
[SerializeField] | |
private string format = "v. {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; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEngine.Events; | |
public class Tweaker : MonoBehaviour |
NewerOlder