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
#!/bin/sh | |
if [ "$2" = "" ]; then | |
git diff --name-status HEAD $1 > diff-ns-HEAD-${1:0:9}.txt | |
else | |
git diff --name-status $1 $2 > diff-ns-${1:0:9}-${2:0:9}.txt | |
fi |
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.SceneManagement; | |
/// <summary> | |
/// Scene単位でパーツを管理する。 | |
/// 型名 = Scene名 | |
/// </summary> | |
public class SceneModule<T> : MonoBehaviour where T : SceneModule<T> | |
{ | |
public static T current { get; private set; } |
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
root = true | |
[*.cs] | |
indent_style = tab | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 |
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 Reflect : MonoBehaviour { | |
public float power = 10f; | |
void OnCollisionEnter(Collision collision) { | |
Vector3 diff = collision.relativeVelocity; | |
if(diff != Vector3.zero) { |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
#endif | |
public class NameAttribute : PropertyAttribute | |
{ |
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 TimeUtils : MonoBehaviour | |
{ | |
//TimeScaleに関わらず、指定の秒数まつ | |
public static IEnumerator WaitForSecondsIgnoreTimeScale(float time) | |
{ | |
float targetTime = Time.realtimeSinceStartup + time; | |
while(Time.realtimeSinceStartup < targetTime) |