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
#!/bin/bash | |
cpuWinCount=0 | |
playerWinCount=0 | |
# 0: あいこ, 1: プレイヤー勝利, 2: cpu勝利, | |
battle() | |
{ | |
if [ $1 -eq $2 ]; then | |
return 0 |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public static class UnityStatusGetter { | |
[MenuItem("Hoge/Fuga %g")] | |
public static void PrintData() | |
{ | |
Debug.Log("batches : " + UnityStats.batches); |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public static class ChangeInspectorLock { | |
[MenuItem("Hoge/Fuga %g")] | |
public static void ChangeLock() | |
{ | |
var tracker = ActiveEditorTracker.sharedTracker; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Linq; | |
using System.Reflection; | |
using System; | |
public static class AutoPlayPreviewAudio { |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Text; | |
public class _CheckTool { | |
[MenuItem("CheckTool/Check")] |
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; | |
public enum WindowType | |
{ | |
Game, | |
Scene, | |
Hierarchy, | |
Console, |
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.Generic; | |
using System.Reflection; | |
using UnityEditor; | |
public static class GetUnityTypes | |
{ | |
public static List<Type> GetEditorWindowTypes() | |
{ | |
var result = GetSubClassTypes<EditorWindow>(); |
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 static class ShowNotification | |
{ | |
public static void Show(EditorWindow window,string message) | |
{ | |
window.ShowNotification(new GUIContent(message)); | |
} | |
} |
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.Collections; | |
using UnityEditor; | |
using UnityEngine; | |
public static class GetHierarchyWindow | |
{ | |
private static EditorWindow GetWindow() | |
{ | |
var assembly = typeof(UnityEditor.EditorWindow).Assembly; | |
var type = assembly.GetType("UnityEditor.SceneHierarchyWindow"); |