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 Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
public unsafe class ArenaAllocator : IDisposable { | |
byte* buffer; // 'buffer' is a pointer to a byte (i.e., byte*) | |
int offset; | |
readonly int capacity; | |
public ArenaAllocator(int sizeInBytes) { |
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 UnityEngine; | |
[CreateAssetMenu(fileName = "AbilityData", menuName = "ScriptableObjects/AbilityData")] | |
class AbilityData : ScriptableObject { | |
public string label; | |
public AnimationClip animationClip; | |
[Range(0.1f, 4f)] public float castTime = 2f; |
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 ImprovedTimers; | |
using UnityEngine; | |
namespace AdvancedController { | |
[RequireComponent(typeof(PlayerController))] | |
public class AnimationController : MonoBehaviour { | |
PlayerController controller; | |
Animator animator; | |
CountdownTimer animationTimer; |
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 TMG.Survivors | |
{ | |
public class CameraTargetSingleton : MonoBehaviour | |
{ | |
public static CameraTargetSingleton Instance; | |
public void Awake() | |
{ |
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
Shader "Custom/VoronoiWater" { | |
Properties { | |
_CellSize ("Cell Size", Range(0, 10)) = 2 | |
_CellSizeSubtract ("Cell Size Subtract", Range(0, 10)) = 2 | |
_CellSubtractFactor ("Cell Subtract Factor", Range(0, 10)) = 1 | |
_WindDirection ("Wind Direction", Vector) = (1, 0, 0) | |
_WindFactor ("Wind Factor", Range(0, 10)) = 1 | |
_BorderColor ("Border Color", Color) = (0,0,0,1) | |
_SurfaceNoise("Surface Noise", 2D) = "white" {} | |
_SurfaceNoiseScroll("Surface Noise Scroll", Vector) = (0.03, 0.03, 0, 0) |
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; | |
public enum ValueType { Int, Float, Bool, String, Vector3 } | |
[Serializable] | |
public struct AnyValue { | |
public ValueType type; | |
// Storage for different types of values |
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.Rendering.Universal; | |
public class DownSamplingRenderFeature : ScriptableRendererFeature | |
{ | |
DownSamplingRenderPass _renderPass; | |
public override void Create() | |
{ | |
// パスの作成 | |
_renderPass = new DownSamplingRenderPass |
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
//FontEngineProxy | |
//Copyright (c) 2024 tsukasa TSUCHIYA(T2/t_tutiya) | |
//This software is released under the MIT License. | |
//http://opensource.org/licenses/mit-license.php | |
using System; | |
using UnityEngine; | |
using System.Collections.Generic; | |
using UnityEngine.TextCore; | |
using UnityEngine.TextCore.LowLevel; |
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 Rive; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class RiveView : MonoBehaviour | |
{ | |
public Asset asset; | |
public RawImage rawImage; | |
public AudioSource audioSource; |
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; | |
public struct Either<TLeft, TRight> { | |
readonly TLeft left; | |
readonly TRight right; | |
readonly bool isRight; | |
Either(TLeft left, TRight right, bool isRight) { | |
this.left = left; |
NewerOlder