Skip to content

Instantly share code, notes, and snippets.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using VRM;
public class Running : MonoBehaviour {
Vector3 _girlStartScale;
Vector3 _girlPosition;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Chronos;
public class ChangeEmissionColor : MonoBehaviour {
Timeline time;
void Start () {
@chittai
chittai / AreaClockMaking.cs
Last active January 7, 2019 14:16
Chronosを使用してトリガーを押している間はAreaClockが有効になるようにしている
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AreaClockMaking : MonoBehaviour {
public GameObject areaClock;
private GuageDecreasing _guageDecreasing;
void Start () {
@chittai
chittai / GageDecreasing.cs
Created January 5, 2019 02:17
Unityでゲージの減少を行うための処理
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GuageDecreasing : MonoBehaviour {
public GameObject Guage;
private float guageMax;
private float guageNow;
@chittai
chittai / ChangeUISize.cs
Created December 1, 2018 15:31
アセットの使用なし版
public class ChangeUISize : MonoBehaviour {
public GameObject panel;
void Update () {
if (Input.GetKey(KeyCode.Space))
{
StartCoroutine(ChangePaneltoBigSize());
}
@chittai
chittai / ChangeUISize.cs
Created December 1, 2018 15:18
DOTweenを使用したケースのUIサイズ変更方法
using System.Collections;
using UnityEngine;
using DG.Tweening;
public class ChangeUISize : MonoBehaviour {
public GameObject panel;
private bool isDefaultScale;
void Update () {
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MakeLine : MonoBehaviour {
public GameObject startPoint;
public GameObject endPoint;
void Start () {
@chittai
chittai / SequenceSample.cs
Created November 5, 2018 14:36
DOTweenでオブジェクトをシーケンシャルに動かす
using UnityEngine;
using DG.Tweening;
public class SequenceSample : MonoBehaviour {
public GameObject cubeGroup;
void Start () {
Sequence sequence = DOTween.Sequence()