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 UnityEngine.SceneManagement; | |
using System.Collections; | |
using System.Collections.Generic; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
[ExecuteInEditMode] |
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
Stencil { | |
Ref 1 | |
Comp Equal | |
} |
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 OutputFile(){ | |
string path = parent.OutputFilePath(); | |
FileInfo fileInfo = new FileInfo(path); | |
StreamWriter sw = fileInfo.AppendText(); | |
sw.WriteLine(GetMapStrFormat()); | |
sw.Flush(); | |
sw.Close(); |
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 CaptureCreater : 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
Animator anim = obj.GetComponent<Animator>(); | |
anim.Rebind(); | |
// 処理 | |
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
SkeletonAnimation skeletonAnimation = obj.GetComponent<SkeletonAnimation>(); | |
// アニメ終了イベントをセット | |
skeletonAnimation.state.Complete += OnCompleteSpineAnim; | |
// アニメ終了イベント | |
private void OnCompleteSpineAnim(Spine.AnimationState state , int trackIndex , int loopCount){ | |
Debug.Log(string.Format("state : {0} , trackIndex : {1} , loopCount : {2}" , state , trackIndex , loopCount)); | |
} |
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; | |
using System.Collections.Generic; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
using System.Linq; | |
#endif | |
public class GameImgHolder : 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; | |
public class CharacterMove : MonoBehaviour { | |
float forwardSpeed = 3.0f; | |
float backwardSpeed = 1.0f; | |
float rotateSpeed = 10.0f; | |
CharacterController characterController; | |
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
int layerMask = LayerMask.GetMask("Enemy"); | |
if(Physics.Raycast(shotRay , out shotHit , range , layerMask)){ | |
// enemyに当たった時だけここにくる | |
} |
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
//~ | |
void * CCNode::getUserData() | |
{ | |
return m_pUserData; | |
} | |
void CCNode::setUserData(void *var) | |
{ | |
m_pUserData = var; | |
} |
NewerOlder