Skip to content

Instantly share code, notes, and snippets.

module.exports = class SubTrigger {
constructor() {
this.data = {};
this.exclusive = null;
}
addTrigger(triggerName) {
this.data[triggerName] = false;
}
@YuukiTsuchida
YuukiTsuchida / FindObjectsDrawer.cs
Last active December 14, 2017 14:28
Editor上でFindObject
using System.Text;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
namespace UniUtil
{
namespace Attribute
{
[CustomPropertyDrawer(typeof(FindObjects))]
# アカウント追加
sudo htpasswd /etc/apache2/dav_svn.passwd *** # ***はユーザー名
sudo apache2ctl restart
# リポジトリの追加
sudo svnadmin create test
sudo chown -R www-data:www-data /var/lib/svn
.PHONY ターゲット
ターゲット: 依存ファイル
[実行コマンド]
#ifndef __TOML_HPP__
#define __TOML_HPP__
#include <iostream>
#include <algorithm>
#include <chrono>
#include <ctime>
#include <memory>
#include <string>
@YuukiTsuchida
YuukiTsuchida / ContentsScope.cs
Last active July 5, 2016 01:24
PackngTag Setting Window
using UnityEngine;
using UnityEditor;
namespace EditorExtension
{
namespace Scope
{
public class ContentsScope : GUI.Scope
{
public ContentsScope()
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using UnityEditorInternal;
#endif
public class ReorderableListAttribute : PropertyAttribute {}
@YuukiTsuchida
YuukiTsuchida / CMakeLists.txt
Created February 17, 2015 13:20
初めてのcmake
# 最低バージョンの指定
cmake_minimum_required(VERSION 2.8)
# SETコマンドでは定数を設定するコマンド
# 設定した定数は環境変数の様に利用する事が可能
# CMAKE_CXX_COMPILERは任意で宣言する定数と違いc++のコンパイラを指定することが可能
SET( CMAKE_CXX_COMPILER /usr/bin/clang++ )
# このコマンドではコンパイラオプションの指定を行う
# C++11でのビルドをしたい場合ここに"-std=c++11"と記載
@YuukiTsuchida
YuukiTsuchida / func03.cpp
Created July 23, 2014 17:00
C++関数テーブル
#include <iostream>
#include <functional>
class Test
{
public:
void print1()
{
std::cout << "print" << std::endl;
}
@YuukiTsuchida
YuukiTsuchida / UnixTime
Created May 23, 2014 06:20
C#でのUnixTime
public static class UnixTime
{
private static readonly DateTime UNIX_EPOCH = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
/*===========================================================================*/
/**
* 現在時刻からUnixTimeを計算する.
*
* @return UnixTime.
*/