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
mergeInto(LibraryManager.library, { | |
OpenToBlankWindow: function (_url) { | |
window.open(Pointer_stringify(_url),'_blank') | |
}, | |
}); |
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; | |
using UnityEngine; | |
using UnityEngine.UI; | |
[DisallowMultipleComponent] | |
public class FadeController : MonoBehaviour { | |
private const string COROUTINE_NAME = "AlphaTransition"; |
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; | |
using UnityEngine; | |
using UnityEngine.UI; | |
[DisallowMultipleComponent] | |
public class FadeController : MonoBehaviour { | |
private const string COROUTINE_NAME = "AlphaTransition"; |
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
//マネージャクラス(オブジェクトにアタッチするのはこれだけ) | |
public class HogeManager : MonoBehaviour | |
{ | |
//変数定義 | |
[SerializeField] | |
private int intHoge1; | |
[SerializeField] | |
private int intHoge2; | |
//Property定義 |
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
public class Hoge | |
{ | |
public int intValue1; | |
public int intValue2; | |
} | |
#if UNITY_EDITOR | |
[CustomEditor(typeof(Hoge))] | |
public class HogeEditor1 : Editor | |
{ |
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; | |
public class CameraFollow : MonoBehaviour { | |
public float moveSpeed = 3; | |
public float rotateSpeed = 3; | |
private GameObject lookTarget; | |
private GameObject cameraPositionTarget; |
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; | |
[RequireComponent(typeof(Rigidbody))] | |
public class PlayerMove : MonoBehaviour { | |
private Rigidbody rb; | |
public float speed = 20; | |
public float QBPower = 120; |
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; | |
public class CameraOffset : MonoBehaviour | |
{ | |
public float moveSpeed = 2; | |
private GameObject playerObj; | |
private Vector3 offset; |
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; | |
public class CameraRotate : MonoBehaviour { | |
public float sensitivity = 1.0f; | |
public bool reverseX = true; | |
public float clampAngle = 60; | |
private GameObject followTarget; |
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; | |
public class CameraFollow : MonoBehaviour { | |
public float moveSpeed = 3; | |
public float rotateSpeed = 3; | |
private GameObject lookTarget; | |
private GameObject cameraPositionTarget; |