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
namespace Mirror | |
{ | |
public struct TransformValues | |
{ | |
[Flags] | |
public enum SyncMode : byte | |
{ | |
none = 0, | |
position = 1, | |
rotation = 2, |
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.Linq; | |
using Mirror; | |
using UnityEngine; | |
namespace JamesFrowen.MirrorExamples | |
{ | |
/// <summary> | |
/// Sync NetworkBehviours in chuld objects | |
/// </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 System.Collections.Generic; | |
using Mirror; | |
using UnityEngine; | |
namespace JamesFrowen.MirrorExamples | |
{ | |
public class PrefabPoolManager : MonoBehaviour | |
{ | |
[Header("Settings")] | |
public int startSize = 5; |
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 Mirror; | |
using UnityEngine; | |
namespace JamesFrowen.Spawning | |
{ | |
public class MirrorPrefabPool : PrefabPool | |
{ | |
private readonly NetworkIdentity _networkPrefab; | |
private bool _handlersRegistered; |
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.IO; | |
using UnityEditor; | |
using UnityEngine; | |
namespace JamesFrowen.EditorScripts | |
{ | |
public static class SpriteMaker | |
{ | |
[MenuItem("Tools/Sprite Maker/Make Circle 256x256")] | |
public static void MakeCircle() |
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 abstract class AssetSet : ScriptableObject { } | |
public abstract class AssetSet<T> : AssetSet where T : Object | |
{ | |
[SerializeField] protected List<T> _items = new List<T>(); | |
private Dictionary<string, T> _dictionary; | |
public string TypeName => typeof(T).Name; | |
public const string CAN_NOT_FIND_WARNING = "{0} could not find {1}"; |
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.Net; | |
using System.Net.Sockets; | |
using Telepathy; | |
using UnityEngine; | |
using UnityEngine.Serialization; | |
namespace Mirror |
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 Mirror; | |
using ProjectWolves.Networking; | |
using UnityEngine; | |
namespace ProjectWolves.Weapons | |
{ | |
public class NetworkProjectile : MonoBehaviour | |
{ | |
public uint ProjectileId { get; set; } | |
public uint LocalId { get; set; } |
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; | |
using System.IO; | |
using Mirror; | |
using UnityEngine; | |
namespace ScreenShotDemo | |
{ | |
public class SendImage : 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 UnityEditor; | |
using UnityEngine; | |
namespace EditorScripts | |
{ | |
public abstract class SerializedEditorWindow : EditorWindow | |
{ | |
/// <summary> | |
/// Serialization target, can be overridden to allow target to be something other than this editor window | |
/// </summary> |