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.UI; | |
using UnityEngine.EventSystems; | |
using System.Collections.Generic; | |
public class UIRingCommand : UIBehaviour, ILayoutGroup { | |
public Vector3 offsetPosition = new Vector3(0f, 0f, 0f); | |
public float offsetAngle; | |
public Vector3 distance = new Vector3(0f, 100f, 0f); |
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; | |
[RequireComponent(typeof(Camera))] | |
public class WaveVisualizer : MonoBehaviour { | |
public int dataLength = 128; | |
public float waveHeightWeight = 0.1f; | |
[Range(0f, 1f)] | |
public float waveWidth = 0.8f; |
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.UI; | |
using System.Collections; | |
[RequireComponent(typeof(Text))] | |
public class UITypeWriterText: MonoBehaviour { | |
private Text targetUIText; | |
private string textCache; |
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 FootStepManager : Photon.MonoBehaviour { | |
public AudioSource SoundPosition; | |
void FootStep() { | |
Debug.Log("FootStep " + SoundManager.Instance.FootStepSE.name); | |
photonView.RPC("PlayFootStepSound", PhotonTargets.All); |
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; | |
/// <summary> | |
/// Organze scripts for Photon usage. | |
/// </summary> | |
public class PhotonPlayerManager : Photon.MonoBehaviour { | |
public Transform CameraPosition; | |
public MonoBehaviour[] OwnerBehaviors; |
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 NetworkManager : Photon.MonoBehaviour { | |
public static NetworkManager Instance { | |
get { return _instance; } | |
} | |
private static NetworkManager _instance; |
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 Hashtable = ExitGames.Client.Photon.Hashtable; | |
public class SmoothSyncObject : MonoBehaviour | |
{ | |
public PhotonView OwnerView; | |
public GameObject[] SyncTargets; | |
public Animator SycnAnimator; | |
// public int RootTargetId = 0; // target which affects position. | |
private bool isDeltaTimeBasedSmoothing = false; |