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
/* | |
* ローカル座標系で指定座標へ移動・回転 | |
* 第1引数:ターゲットGameObject, 第2引数:移動に関する各種パラメータのハッシュ | |
* iTween.Hashでキーバリュー形式のハッシュ作成 | |
*/ | |
void Start() { | |
iTween.MoveTo(this.gameObject, iTween.Hash( | |
"position", Vector3.zero, | |
"time", 0.5, | |
"oncomplete", "complete", |
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; | |
public class UniPainter : MonoBehaviour { | |
Texture2D texture; | |
string color_str = "000000"; | |
void Start () { | |
texture=guiTexture.texture as Texture2D; | |
if (texture == null) { |