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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Playables; | |
using System; | |
using UnityEngine.UI; //UIを使用 | |
// A behaviour that is attached to a playable | |
public class FadeInPlayableBehaviour : PlayableBehaviour |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Playables; | |
using UnityEngine.UI; | |
[System.Serializable] | |
public class FadeInPlayableAsset : PlayableAsset | |
{ |
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.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using System.Media; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class RotateFloor : MonoBehaviour | |
{ | |
// Use this for initialization | |
void Start() | |
{ | |
} |
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.Collections.Generic; | |
using UnityEngine; | |
using System; | |
class Trapcol : MonoBehaviour | |
{ | |
public ChaCon2 CC; //”ChaCon2”スクリプトがアタッチされたPlayerをインスペクター上で格納 | |
OnTriggerEnter(Collider collider) | |
{//トラップタグをもつオブジェクトへ当たった時 |
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
Shader "Custom/HideObject1" { | |
SubShader{ | |
Tags { "RenderType" = "Opaque" "Queue" = "Geometry-1"} | |
Pass{ | |
ColorMask 0 //描写しない | |
CGPROGRAM | |
#pragma vertex vert |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class BrendTreeTest : MonoBehaviour { | |
public float speed = 5; //playerのスピード | |
private Rigidbody rb; |
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 BlueToothCon2 : MonoBehaviour | |
{ | |
private Animator anim; | |
private CharacterController characterController; | |
private Vector3 velocity; | |
private float jumpPower = 5f; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Controll : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
//スマホ画面上のXボタンを押すとアプリが終了 | |
Input.backButtonLeavesApp = true; |
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; | |
using System.Collections.Generic; | |
public class DebugDisplayLog : MonoBehaviour | |
{ | |
static public List<string> displayLog = new List<string>(); | |
private void Start() | |
{ |
NewerOlder