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 UnityEditor; | |
public class GitHubPageJumper | |
{ | |
// ref https://github.com/p-chin/dotfiles | |
private static readonly string gitHubTeamName = "p-chin"; | |
private static readonly string gitHubRepositoryName = "dotfiles"; | |
private static readonly string gitHubBranchName = "master"; |
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 UnityEditor; | |
public static class DefineSymbolSwitcher | |
{ | |
private static BuildTargetGroup CurrentPlatform = EditorUserBuildSettings.selectedBuildTargetGroup; | |
private static void Log() { | |
UnityEngine.Debug.Log(string.Format("done! Platform: {0}, DefineSymbol: {1}", | |
CurrentPlatform, PlayerSettings.GetScriptingDefineSymbolsForGroup(CurrentPlatform))); | |
} |
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
#if !DEV | |
using UnityEngine; | |
using System.Collections; | |
/// <summary> | |
/// 自家製のDebugクラス. | |
/// Debug.Logの出力をDEV環境以外では空にする為に作った | |
/// </summary> | |
public class Debug : MonoBehaviour | |
{ |
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.Collections; | |
/// TODO 衝突したら何らかの動作を行う様に設計したい | |
public class ActionTrigger : MonoBehaviour { | |
public float speed = 3.0f; | |
void Start () { | |
} |
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.Collections; | |
public class PlayerController : BaseCharactorController { | |
void Update() { | |
ReceiveInput(); // player only | |
} |
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 UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
public class CodingRuleChecker : Editor | |
{ | |
[MenuItem("Tools/CheckCodingRule")] | |
static void Run () |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Base charactor controller. | |
/// ゲームに登場するキャラクターの共通機能を書きたいクラス | |
/// </summary> | |
[RequireComponent (typeof (Rigidbody))] |
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 UnityEditor; | |
using System.Collections; | |
public interface IFugu { | |
int life | |
{ | |
get; | |
set; |
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 System; | |
using System.Collections; | |
namespace P.ExtensionMethods.Dictionary | |
{ | |
public static class DictionaryExtension { | |
public static T NestValue<T>(this IDictionary dict, params string[] keys) { | |
T result = default(T); | |
IDictionary tmpDict = dict; | |
for (int i = 0; i < keys.Length; i++) { |
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
private void SetActiveChildrens(GameObject go, bool active) | |
{ | |
int goChildCount = go.transform.childCount; | |
for(int i=0; i < goChildCount; i++){ | |
go.transform.GetChild(i).gameObject.SetActive(active); | |
} | |
} |
NewerOlder