Skip to content

Instantly share code, notes, and snippets.

@nghryuki
nghryuki / MyGuideLine.md
Last active November 27, 2018 09:32
My Unity's Coding Guidelines
  • 初期化関数はStart()で。 → Initを各クラスに書く必要がなくなる。

  • LeanTweenのv2で実装されたsequence()はデフォではloop関数がついてねい。 ので、フラグ管理して再帰呼び出しする。 ということを覚えた。

private bool _isPlaying = false;
private void FlashAnima()
{
@nghryuki
nghryuki / JsonLoader.js
Last active September 19, 2018 09:48
JsonLoader.js
/*
File: JsonLoader.js
Author: Ryuki Nagahora
Created on 2018/09/19, 16:23
// --- example of use --- //
JsonLoader.load("../test.json").then((obj) =>
{
console.log(obj);
@nghryuki
nghryuki / pythonMemo.md
Created October 24, 2017 03:41
Python Memo
@nghryuki
nghryuki / ofApp.cpp
Created September 1, 2016 19:45
SlitScan
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetFrameRate(60);
//
// ウェブカム初期化
_vid.setDeviceID(1);
@nghryuki
nghryuki / ofApp.cpp
Created August 30, 2016 19:20
ShakeRGB
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
_video.setDeviceID(1);
_video.setup(VID_W, VID_H);
_colorImg.allocate(VID_W, VID_H);
_Rimg.allocate(VID_W, VID_H);