This file contains hidden or 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 | |
| readonly MIN_PER_STAMINA=5 | |
| function usage() { | |
| cat <<_EOT_ | |
| Usage: | |
| $0 \$1 | |
| スタミナが\$1まで回復する時刻 |
This file contains hidden or 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
| Game_Interpreter.prototype.EventSample1 = function*() { | |
| this.showText('hello event script sample!'); | |
| yield this.waitForMessage(); | |
| this.showText('ok!'); | |
| yield this.waitForMessage(); | |
| } |
This file contains hidden or 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
| ###: | |
| # @plugindesc ツイートするやつ | |
| # @author kyubuns | |
| # | |
| # @help | |
| # | |
| # Plugin Command: | |
| # Tweet (message) | |
| # | |
| # Example: |
This file contains hidden or 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
| // Generated by CoffeeScript 1.10.0 | |
| /*: | |
| * @plugindesc ツイートするやつ | |
| * @author kyubuns | |
| * | |
| * @help | |
| * | |
| * Plugin Command: | |
| * Tweet (message) |
This file contains hidden or 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
| Target=$(cd $(dirname $1) && pwd)/$(basename $1) | |
| if [ $# == 0 ]; then | |
| echo "Usage: OpenUnity [project path] [unity version]" | |
| exit 0 | |
| fi | |
| if [ ! -e "${Target}/ProjectSettings/ProjectVersion.txt" ]; then | |
| echo "${Target}/ProjectSettings/ProjectVersion.txt が見つかりません。" | |
| exit 1 | |
| fi |
This file contains hidden or 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; | |
| using System.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| [InitializeOnLoad] | |
| class SpaceSphere | |
| { | |
| static SpaceSphere() |
This file contains hidden or 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; | |
| [CustomEditor(typeof(CanvasRenderer))] | |
| public class CanvasRendererMover : Editor | |
| { | |
| static int hint = "WidgetHash".GetHashCode(); | |
| void OnSceneGUI() | |
| { |
This file contains hidden or 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; | |
| public class Model | |
| { | |
| public Action<string> OnChange; | |
| protected void Changed(string propertyName) | |
| { | |
| if(OnChange != null) OnChange(propertyName); |
This file contains hidden or 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
| import vibe.core.core : sleep; | |
| import vibe.core.log; | |
| import vibe.http.fileserver : serveStaticFiles; | |
| import vibe.http.router : URLRouter; | |
| import vibe.http.server; | |
| import vibe.http.websockets : WebSocket, handleWebSockets; | |
| import core.time; | |
| shared static this() |
This file contains hidden or 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 TestButton : MonoBehaviour { | |
| [SerializeField] string imageUrl; | |
| UITexture texture; | |
| void Awake() | |
| { | |
| texture = GetComponent<UITexture>(); |