Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created July 21, 2015 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/bc2385841170e5cae6e6 to your computer and use it in GitHub Desktop.
Save tsubaki/bc2385841170e5cae6e6 to your computer and use it in GitHub Desktop.
起動時に1度だけメッセージを表示する
using UnityEngine;
using UnityEditor;
[UnityEditor.InitializeOnLoad]
public class Hoge
{
static readonly string tempFilePath = "Temp/unique File Name2";
static Hoge()
{
if( System.IO.File.Exists(tempFilePath ) == false ){
Debug.Log ("hoge");
System.IO.File.Create(tempFilePath);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment