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 LoadABScene : MonoBehaviour { | |
[SerializeField] string sceneName = "Demo"; | |
[SerializeField] string assetBundleName = "demo"; | |
IEnumerator Start() | |
{ |
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 LightmapPrefab : MonoBehaviour { | |
[System.Serializable] | |
class LightmapParameter | |
{ | |
public int lightmapIndex = -1; |
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 "FX/Ghost" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_NormalTex ("Normal (RGB)", 2D) = "white" {} | |
_EmissionTex ("Emission (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
_Blightness ("Metallic", Range(0,3)) = 0.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
Shader "surface_two_pass" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
} | |
SubShader { | |
// 1パス目 | |
Tags {"Queue"="Transparent"} | |
CGPROGRAM | |
ENDCG | |
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 UnityEditor; | |
using UnityEditorInternal; | |
using UnityEngine; | |
public class CopyComponents : EditorWindow { | |
private GameObject originalObject = null; | |
private GameObject targetObject = null; | |
[MenuItem("Window/CopyComponent")] |
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/TwoPass" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
} | |
SubShader { | |
// ----- 1 pass ------ |
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; | |
/* | |
Radial Layout Group by Just a Pixel (Danny Goodayle) - http://www.justapixel.co.uk | |
Copyright (c) 2015 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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 MinionStudios | |
{ | |
[System.Serializable] | |
public class Damage | |
{ | |
public enum Type { Standard, Fire, Bludgeon, Poison, Stun, Heal, Fall }; | |
public Type type; | |
public float initialDamage = 1f; | |
public float damagePerSecond = .5f; | |
public float expireSeconds = 0.0f; |
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; | |
//You must add the following Components to the object or else this script will fail. | |
[RequireComponent(typeof(Rigidbody))] | |
[RequireComponent(typeof(CapsuleCollider))] | |
[RequireComponent(typeof(Animator))] | |
//Provides a set of default values to instance and build on top of. | |
public class Movement{ |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
public abstract class BaseModel<T> where T : BaseModel<T> | |
{ | |
private static bool SHOW_DEBUGGING_MESSAGES = false; |