Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@daponta
daponta / gist:6602964
Last active December 23, 2015 07:49
iTweenサンプル
/*
* ローカル座標系で指定座標へ移動・回転
* 第1引数:ターゲットGameObject, 第2引数:移動に関する各種パラメータのハッシュ
* iTween.Hashでキーバリュー形式のハッシュ作成
*/
void Start() {
iTween.MoveTo(this.gameObject, iTween.Hash(
"position", Vector3.zero,
"time", 0.5,
"oncomplete", "complete",
@daponta
daponta / UniPainter.cs
Created July 18, 2013 11:05
Unityでお絵かき
using UnityEngine;
using System;
public class UniPainter : MonoBehaviour {
Texture2D texture;
string color_str = "000000";
void Start () {
texture=guiTexture.texture as Texture2D;
if (texture == null) {