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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/* by FVS - HaLuan */ | |
/// <summary> | |
/// Run: | |
/// 1. Add this script to a GameObject | |
/// 2. Have an internet connection |
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 UnityEngine; | |
using System.Collections; | |
/* by FVS - HaLuan */ | |
public class CameraVibrator : MonoBehaviour | |
{ | |
new Camera camera; |
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 UnityEngine; | |
using System.Collections; | |
/* by FVS - HaLuan */ | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshRenderer))] | |
public class TutorialFogController : MonoBehaviour | |
{ | |
public void SetTutorialFog(Vector2 overallSize, Vector2 spotlightPosition, Vector2 spotlightSize) |
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
/* by FVS - Ha Luan */ | |
// Usage: | |
// 1. Create a material using this shader | |
// 2. Apply the new material to a cube with correct normal vectors defined (a Unity's built-in cube is enough) | |
Shader "FVS/Color cube" { | |
SubShader | |
{ | |
cull off |
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
#if UNITY_EDITOR | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
/* Found on the Internet */ | |
public static class ScriptableObjectUtility | |
{ | |
/// <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 UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
/* by FVS - Ha Luan */ | |
public class StartWithSpecificScene : Editor | |
{ | |
const string settingKey = "FVSHaluanStartWithSpecificScene"; | |
const string firstScenePath = "Assets/Scenes/Login.unity"; |
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 UnityEngine; | |
using System.Collections; | |
/* by FVS - Ha Luan */ | |
public class Debugf : MonoBehaviour | |
{ | |
#region Instance | |
static Debugf instance = null; | |
static Debugf Instance |
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 UnityEngine; | |
using System.Collections; | |
public class SortingLayerSetter : MonoBehaviour { | |
} |
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 UnityEngine; | |
[RequireComponent(typeof(MeshFilter))] | |
[ExecuteInEditMode] | |
public class DumbMesh : MonoBehaviour | |
{ | |
void Start() | |
{ | |
GenerateMesh(); | |
} |
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
/// <summary> | |
/// made by FVS, for Beat Stickman: Beyond project | |
/// Visit the game at: https://store.steampowered.com/app/1494280/Beat_Stickman_Beyond | |
/// ________________ | |
/// ***Prerequisite: | |
/// - Place this file under an Editor folder in your Unity project | |
/// ________________ | |
/// ***Copy a list from Unity to a text editor: | |
/// 1. Copy the list in the inspector | |
/// 2. Go to menu: FH/Inspector List/Convert to text list |