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 GameCanvas; | |
/// <summary> | |
/// ブート画面 | |
/// </summary> | |
public sealed class Boot : IScene | |
{ | |
private float mEnterTime; | |
public Boot() |
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
public static class Debug | |
{ | |
public static void LogError(object message, UnityEngine.StackTraceLogType stackTraceType = UnityEngine.StackTraceLogType.ScriptOnly) | |
{ | |
LogInternal(UnityEngine.LogType.Error, message, stackTraceType); | |
} | |
public static void LogWarning(object message, UnityEngine.StackTraceLogType stackTraceType = UnityEngine.StackTraceLogType.ScriptOnly) | |
{ | |
LogInternal(UnityEngine.LogType.Warning, message, stackTraceType); |
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 Sequence = System.Collections.IEnumerator; | |
/// <summary> | |
/// ゲームクラス。 | |
/// 学生が編集すべきソースコードです。 | |
/// </summary> | |
public sealed class Game : GameBase | |
{ | |
/// <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 System.Reflection; | |
using UnityEngine; | |
using UnityEngine.Assertions; | |
/// <summary> | |
/// <see cref="UnityEditor.TextureUtil"/> Accessor | |
/// </summary> | |
/// <author>Seibe TAKAHASHI</author> | |
/// <remarks> |
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>TypeCheckerTest</summary> | |
/// <author>Seibe TAKAHASHI</author> | |
/// <remarks> | |
/// (c) 2017 Seibe TAKAHASHI. | |
/// This software is released under the MIT License. | |
/// http://opensource.org/licenses/mit-license.php | |
/// </remarks> | |
public class TypeCheckerTest | |
{ | |
[UnityEditor.MenuItem("TypeChecker/SpriteRenderer")] |
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 UnityEngine.UI; | |
public class Main : MonoBehaviour | |
{ | |
public RawImage raw; | |
public int N = 64; | |
public float diff = 0.0f; | |
public float visc = 0.0f; | |
public float force = 5.0f; |
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
/** | |
* Jos Stam's Stable Fluids (for C#) | |
**/ | |
public static class FluidMath | |
{ | |
public static void VelStep(int N, ref float[] u, ref float[] v, ref float[] u0, ref float[] v0, float visc, float dt) | |
{ | |
AddSource(N, ref u, ref u0, dt); | |
AddSource(N, ref v, ref v0, dt); |
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; | |
using System.Collections; | |
public class Main : MonoBehaviour | |
{ | |
private Transform hours, minutes, seconds; | |
private const float | |
hoursToDeg = -360f / 12f, | |
minutesToDeg = -360f / 60f, |