ここに、Claudeからの疑問があった場合、以下のフォーマットを「Claudeからの質問リスト」に追加し、質問内容はClaudeで自動記載する。
この項目及び脚注、次の項目の題目は絶対に消してはいけない
※ このフォーマットは Claude で消さないこと
| float ConvertLinear01DepthToRawDepth(float d) | |
| { | |
| // Linear01Depth | |
| // return 1.0 / (_ZBufferParams.x * z + _ZBufferParams.y); | |
| // d = 1.0 / (_ZBufferParams.x * z + _ZBufferParams.y); | |
| // d * (_ZBufferParams.x * z + _ZBufferParams.y) = 1.0; | |
| // _ZBufferParams.x * z * d + _ZBufferParams.y * d = 1.0; | |
| // _ZBufferParams.x * z * d = 1.0 - _ZBufferParams.y * d; | |
| // z = (1.0 - _ZBufferParams.y * d) / (_ZBufferParams.x * d); |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| namespace Utilities | |
| { | |
| public class GameObjectPool<T> where T : Component | |
| { | |
| private GameObject _rootObj; | |
| private T _spawnObject; | |
| private int _poolNum; |
| using UnityEngine; | |
| namespace Utilities | |
| { | |
| // ---------------------------------------------------------------------------------------- | |
| // refs: | |
| // https://stackoverflow.com/questions/33437244/find-children-of-children-of-a-gameobject | |
| // ---------------------------------------------------------------------------------------- | |
| public static class TransformUtilities |
| using System; | |
| using System.Collections.Generic; | |
| namespace Utilities | |
| { | |
| // singleton: https://gist.github.com/takumifukasawa/9519ed0f64abdf68608d098a3441b0d9 | |
| public class ServiceLocator : SingletonComponent<ServiceLocator> | |
| { | |
| private static Dictionary<Type, object> _dictionary = new Dictionary<Type, object>(); |
| using System; | |
| using UnityEngine; | |
| namespace Utilities | |
| { | |
| public class SingletonComponent<T> : MonoBehaviour where T : MonoBehaviour | |
| { | |
| private static T _instance; | |
| public static T Instance |
| using System; | |
| using UnityEngine; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace Utilities | |
| { | |
| public class StateMachine<T> where T : IConvertible |
| export class TimeAccumulator { | |
| targetFPS; | |
| #callback; | |
| #lastTime; | |
| maxChaseCount; | |
| constructor(targetFPS, callback, maxChaseCount = 60) { | |
| this.targetFPS = targetFPS; | |
| this.#callback = callback; |
| export class TimeSkipper { | |
| targetFPS; | |
| #callback; | |
| #lastTime; | |
| constructor(targetFPS, callback) { | |
| this.targetFPS = targetFPS; | |
| this.#callback = callback; | |
| } |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | |
| name="viewport"> | |
| <meta content="ie=edge" http-equiv="X-UA-Compatible"> | |
| <title>Document</title> | |
| <style> | |
| .wrapper { |