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; | |
namespace Citrus.VectorComputes | |
{ | |
/// <summary> | |
/// 対象を向くように回転しながら前進するオブジェクト | |
/// </summary> | |
public class Homing : MonoBehaviour | |
{ | |
/// <summary> |
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 UnityEngine.Audio; | |
using UnityEngine.UI; | |
namespace Citrus.Sound { | |
[RequireComponent(typeof(Slider))] | |
public class MixerVolumeSlider : MonoBehaviour{ | |
[SerializeField] private AudioMixer audioMixer; | |
[SerializeField] private string volumeExposeParameter; |
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 System.Linq; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
[RequireComponent(typeof(Graphics))] | |
public class MouseOverDetector : MonoBehaviour{ | |
[SerializeField] private GraphicRaycaster raycaster; // Required |
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 UniRx; | |
namespace Citrus.Photon.Chat { | |
public class ChatLog : IDisposable { | |
public List<Statement> Log { get; private set; } = new List<Statement>(); | |
private readonly Subject<Statement> onAnySpeakSubject = new Subject<Statement>(); |
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 ExitGames.Client.Photon; | |
using Photon.Pun; | |
using Photon.Realtime; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// PUN2 ルーム内タイミング合わせ | |
/// </summary> |
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
/* | |
The zlib/libpng License (Zlib) | |
Copyright (c) 2018 Hassaku | |
This software is provided 'as-is', without any express or implied warranty. | |
In no event will the authors be held liable for any damages arising rom | |
the use of this software. | |
Permission is granted to anyone to use this software for any purpose, |
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 UnityEngine; | |
[RequireComponent(typeof(CanvasGroup))] | |
public class FadeOutScreen : MonoBehaviour{ | |
[SerializeField] private float fadeTime = 0.2f; | |
[SerializeField] private AnimationCurve alphaCurve; | |
private CanvasGroup fadeGroup; |
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 UnityEngine; | |
namespace Citrus.UI{ | |
/// <summary> | |
/// 開くときにフェードインするウインドウ | |
/// </summary> | |
[RequireComponent(typeof(CanvasGroup))] | |
public class FadeInWindow : MonoBehaviour { |
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 UnityEngine.SceneManagement; | |
/// <summary> | |
/// 寿命がSceneのSingletonMonobehaviour | |
/// </summary> | |
/// <typeparam name="T"></typeparam> | |
public abstract class SceneSingletonMonoBeheviour<T> : MonoBehaviour | |
where T : SceneSingletonMonoBeheviour<T>{ |
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 UnityEngine; | |
using System.Collections; | |
public class HitStopHandler : MonoBehaviour { | |
public void HitStop(float stopTime, Action onResume) | |
{ | |
StartCoroutine(HitStopCoroutine(stopTime, onResume)); | |
} |