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
<?php | |
$i = 0; | |
while(true){ | |
$phase = $i % 8; | |
switch($phase){ | |
case 0: | |
case 4: | |
echo "\r|"; | |
break; |
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
<?php | |
if(count($argv) < 1){ | |
echo "no argument."; | |
return; | |
} | |
$script_name = $argv[1]; | |
// check script existance |
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 CielaSpike.Unity.LiveConsole; | |
using UnityEngine; | |
[assembly: LiveConsoleHook (typeof(MyGame.ColorByTag))] | |
/// <summary> | |
/// LiveConsoleのタグに色付けするHook | |
/// </summary> | |
namespace MyGame | |
{ | |
class ColorByTag : LiveConsoleHook |
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; | |
/// <summary> | |
/// LiveConsoleログ | |
/// </summary> | |
public class LCLog : MonoBehaviour { | |
/// <summary> | |
/// ソケット通信のログ | |
/// </summary> |
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; | |
/// <summary> | |
/// 足の接地を感知して音を鳴らす | |
/// </summary> | |
public class FootStepDetector : MonoBehaviour { | |
public FootStepSounds footStepSounds; |
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 UnitySampleAssets.CrossPlatformInput; | |
public class JoystickToMove : MonoBehaviour | |
{ | |
// ジョイスティックの値にアニメーションを追従させるスピード | |
const float ADJUST_SPEED = 0.05f; | |
Animator anim; |
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 UnitySampleAssets.CrossPlatformInput; | |
/// <summary> | |
/// バーチャルジョイスティックでNavMeshAgentを操作 | |
/// NavMeshAgent にアタッチして使用 | |
/// </summary> | |
public class AgentControlledByJoystick : MonoBehaviour { | |
/// <summary> |
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 UnitySampleAssets.CrossPlatformInput; // CrossPlatformInputManager を含む名前空間 | |
public class VirtualJoystick : MonoBehaviour { | |
float x; | |
float y; | |
GUIStyle style; |
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; | |
/// <summary> | |
/// 剣の軌跡を生成 | |
/// </summary> | |
public class SwordTrack : MonoBehaviour | |
{ | |
/// <summary> | |
/// 軌跡を表示する剣先スピードしきい値 |
NewerOlder