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.Linq; | |
using UnityEngine.LowLevel; | |
namespace HassakuLab.Utils.PlayerLoops | |
{ | |
/// <summary> | |
/// utility to insert PlayerLoop subsystem | |
/// </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; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.LowLevel; | |
namespace HassakuLab.Utils.PlayerLoops.Editor | |
{ | |
public class PlayerLoopViewer : EditorWindow | |
{ |
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; | |
// ReSharper disable RedundantCast | |
// ReSharper disable UnusedMember.Global | |
// ReSharper disable RedundantOverflowCheckingContext | |
namespace $Namespace${ | |
public readonly struct $StructName$ : IEquatable<$StructName$>, IComparable<$StructName$> { | |
readonly $Type$ value; | |
public $StructName$($Type$ value){ |
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 HassakuLab.Physics2D.BoxSystem | |
{ | |
/** | |
* Rigidbody for BoxSystem | |
*/ | |
[RequireComponent(typeof(Rigidbody2D))] | |
[RequireComponent(typeof(BoxCollider2D))] | |
public class DynamicBox : 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.hassakulab.unitybridgesample" | |
xmlns:tools="http://schemas.android.com/tools"> | |
<application | |
android:allowBackup="true" | |
android:label="@string/app_name" | |
android:supportsRtl="true" | |
android:theme="@style/Theme.UnityBridgeSample"> |
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 Cysharp.Threading.Tasks; | |
using UnityEngine; | |
/// <summary> | |
/// アクタークラス | |
/// </summary> | |
[RequireComponent(typeof(HitStunHandler))] | |
public class Actor : MonoBehaviour | |
{ | |
/// <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; | |
using UnityEngine; | |
public class CubeForPool : MonoBehaviour, IPoolable<CubeForPool> | |
{ | |
private ObjectPool<CubeForPool> ObjectPool { get; set; } | |
public void Initialize(ObjectPool<CubeForPool> objectPool) | |
{ | |
ObjectPool = objectPool; |
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
export const generateUuid: () => string = () =>{ | |
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("") | |
.map(c =>{ | |
if(c === "x"){ | |
return Math.floor(Math.random() * 16).toString(16); | |
} | |
else if(c === "y"){ | |
return Math.floor(Math.random() * 4 + 8).toString(16); | |
} | |
else{ |
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
int countParPage = 10; // 1ぺーじあたりのアイテム数 | |
int allItems = 100; // 全アイテム数 | |
// ページ数 | |
int PageCount => (allItems + countParPage - 1) / countParPage; |
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 UniRx; | |
using UnityEngine; | |
namespace KotonohaAnone.Presenter | |
{ | |
public class BeatTransmitter : MonoBehaviour | |
{ | |
[SerializeField] private AudioSource audioSource; | |
[SerializeField] private float bpm; |
NewerOlder