Skip to content

Instantly share code, notes, and snippets.

@urahimono
urahimono / CityData.cs
Last active April 30, 2018 07:03
【Unity】WebAPIを呼んで天気予報を取得してみよう
//------------------------------------------------------------------------
//
// (C) Copyright 2018 Urahimono Project Inc.
//
//------------------------------------------------------------------------
using UnityEngine;
public class CityData
{
public CityData( string i_id, string i_name )
@urahimono
urahimono / Finder.cs
Created October 23, 2017 22:30
【Unity】さあ、索敵をはじめよう
//------------------------------------------------------------------------
//
// (C) Copyright 2017 Urahimono Project Inc.
//
//------------------------------------------------------------------------
using UnityEngine;
using System.Collections.Generic;
public class Finder : MonoBehaviour
{
@urahimono
urahimono / ObjectController.cs
Created October 15, 2017 13:12
【Unity】NavMeshを学ぶ
//------------------------------------------------------------------------
//
// (C) Copyright 2017 Urahimono Project Inc.
//
//------------------------------------------------------------------------
using UnityEngine;
using UnityEngine.AI;
using System.Collections;
[RequireComponent( typeof( NavMeshAgent ) )]
@urahimono
urahimono / CameraController.cs
Created October 9, 2017 00:37
【Unity】オブジェクトについてくるカメラを作ったよ
//------------------------------------------------------------------------
//
// (C) Copyright 2017 Urahimono Project Inc.
//
//------------------------------------------------------------------------
using UnityEngine;
public class CameraController : MonoBehaviour
{
[SerializeField]
@urahimono
urahimono / ExitBoxTrigger.cs
Created September 30, 2017 14:24
【Unity】離れたら触れるようになるオブジェクト
//------------------------------------------------------------------------
//
// (C) Copyright 2017 Urahimono Project Inc.
//
//------------------------------------------------------------------------
using UnityEngine;
public class ExitBoxTrigger : MonoBehaviour
{
public event System.Action onExit = () => {};
@urahimono
urahimono / DominoController.cs
Created September 24, 2017 09:47
【Unity】ドミノ倒しを作ってみよう!
//------------------------------------------------------------------------
//
// (C) Copyright 2017 Urahimono Project Inc.
//
//------------------------------------------------------------------------
using UnityEngine;
[RequireComponent( typeof( Rigidbody ) )]
public class DominoController : MonoBehaviour
{
@urahimono
urahimono / JsonData.cs
Last active October 17, 2017 23:03
【Unity】JsonEditorの作成
//------------------------------------------------------------------------
//
// (C) Copyright 2017 Urahimono Project Inc.
//
//------------------------------------------------------------------------
using UnityEngine;
[System.Serializable]
public class JsonData
{
@urahimono
urahimono / FaceData.cs
Created July 23, 2017 05:17
【Unity】MicrosoftのFaceAPIを使って顔認識で遊んでみよう
using UnityEngine;
[System.Serializable]
public class FaceData
{
[SerializeField]
public FacePersonData[] persons = null;
} // class FaceData
@urahimono
urahimono / FadeController.cs
Created April 6, 2017 13:04
GGJ2017で使ったシーン管理システム
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class FadeController : MonoBehaviour
{
public enum EFadeState
{
In, // フェードイン完了.
Out, // フェードアウト完了.
@urahimono
urahimono / SceneTable.cs
Last active April 6, 2017 13:08
GGJ2017で使ったシーン管理システム
using UnityEngine;
using System.Linq;
public enum EScene
{
Initialize,
Title,
Gameplay,
Edit,
Shop,