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
public class NetworkTransport : Transport, IOnEventCallback, IMatchmakingCallbacks, IInRoomCallbacks | |
{ | |
public LoadBalancingClient Photon = new(); | |
public override void Initialize(NetworkManager networkManager, int transportIndex) | |
{ | |
base.Initialize(networkManager, transportIndex); | |
Photon.AddCallbackTarget(this); | |
} |
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
public static class EOSExtensions | |
{ | |
public static readonly uint ChunkSize = 4096; | |
#region Auth | |
public static async Task<Auth.LoginCallbackInfo> StartPersistentLogin(this EOSManager.EOSSingleton @this) | |
{ | |
Auth.LoginCallbackInfo? result = null; | |
@this.StartPersistentLogin(r => result = r); | |
while (!result.HasValue) await Task.Yield(); |
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.Linq; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
public class UIBehaviour : MonoBehaviour | |
{ | |
public List<VisualElement> Find(string query, bool one = false) |
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 SteamAudio; | |
public class SpatialAudioListener : MonoBehaviour | |
{ | |
private SteamAudioListener _steamAudioListener; | |
private System.Action _onSteamAudioListenerReady; | |
private bool _isSteamAudioListenerReady = false; |
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; | |
/// <summary> | |
/// Inverse kinematics. Attaches hands to a weapon and rotates a head in the direction it's looking. | |
/// </summary> | |
[DefaultExecutionOrder(1000)] | |
public class InverseKinematics : 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 System.Collections.Generic; | |
public class GenericTable<T, U> { | |
private List<GenericTableEntry> Table = new List<GenericTableEntry>(); | |
public void Add(T Key, U Value) { | |
Table.Add(new GenericTableEntry(Key, Value)); | |
} | |
public GenericTableEntry[] GetAll() { |