Skip to content

Instantly share code, notes, and snippets.

View kunofellasleep's full-sized avatar

Kuno Fell Asleep kunofellasleep

View GitHub Profile
@kunofellasleep
kunofellasleep / LocalColor.shader
Last active March 14, 2018 04:49
LocalColor.shader
Shader "_kunofellasleep/LocalColor.shader" {
SubShader {
Tags { "RenderType"="Opaque" }
LOD 100
Pass {
CGPROGRAM
// Upgrade NOTE: excluded shader from DX11; has structs without semantics (struct v2f members localPos)
#pragma exclude_renderers d3d11
#pragma vertex vert
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UniRx;
/// <summary>
/// 指定のフォルダ(targetPath)に音声ファイルをいれて
/// SoundEffectManager.Instance.Play("filename"); で再生できる
/// </summary>
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TimeScaleController : MonoBehaviour {
[SerializeField] private float speedupScale = 100.0f;
[SerializeField] private float scale = 1.0f;
void Update () {