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
h1. 変更が消えてしまった!?その対応 | |
せっかく実施したコードへの修正が消えてしまう、これほど開発者をがっかりさせることは無いでしょう。 | |
Gitを使えば、消えてしまったように見える変更を復活できることがあります。 | |
h2. 大原則 | |
復活できる可能性があるのは、「何らかの形でGitに履歴を残してある歴史」だけです。 | |
たとえば、以下のファイルを復活させることはできません。 |
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 TimeUtils : MonoBehaviour | |
{ | |
//TimeScaleに関わらず、指定の秒数まつ | |
public static IEnumerator WaitForSecondsIgnoreTimeScale(float time) | |
{ | |
float targetTime = Time.realtimeSinceStartup + time; | |
while(Time.realtimeSinceStartup < targetTime) |
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
namespace ILExaminer | |
{ | |
using System; | |
static class Program | |
{ | |
internal static Func<T> AsFunc<T>(this T value) | |
where T : class | |
{ | |
return new Func<T>(value.Return); |
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; | |
using System.Collections.Generic; | |
using UnityEngine.Events; | |
// interface you implement in your MB to receive events | |
public interface ICustomHandler : IEventSystemHandler | |
{ | |
void OnCustomCode(CustomEventData eventData); | |
} |
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
/// Set Sorting Layer | |
/// Copyright (c) 2014 Tatsuhiko Yamamura | |
/// Released under the MIT license | |
// / http://opensource.org/licenses/mit-license.php | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
#if UNITY_EDITOR |
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
Shader "UI/Mask" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
_StencilComp ("Stencil Comparison", Float) = 8 | |
_Stencil ("Stencil ID", Float) = 0 | |
_StencilOp ("Stencil Operation", Float) = 0 |
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.Threading.Tasks; | |
using Discord.Commands; | |
public class AudioModule : ModuleBase<ICommandContext> | |
{ | |
// Scroll down further for the AudioService. | |
// Like, way down | |
private readonly AudioService _service; | |
// Remember to add an instance of the AudioService |
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
namespace FunctionApp1 | |
{ | |
using Autofac; | |
using Autofac.Core; | |
using EnsureThat; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Description; | |
using Microsoft.Azure.WebJobs.Host; | |
using Microsoft.Azure.WebJobs.Host.Config; |
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 class DataStoreItem: TableEntity | |
{ | |
public string Value { get; set; } | |
} |
OlderNewer