コード例 #1
0
ファイル: GameObjectPool.cs プロジェクト: r2d2m/WFC-Demo
 public static void PreAlloc <T>(int count) where T : Component
 => PerComponentPool <T> .PreAlloc(count);
コード例 #2
0
ファイル: GameObjectPool.cs プロジェクト: r2d2m/WFC-Demo
 public static T Get <T>() where T : Component
 => PerComponentPool <T> .Get();
コード例 #3
0
ファイル: GameObjectPool.cs プロジェクト: r2d2m/WFC-Demo
 public static void Release <T>(T component) where T : Component
 => PerComponentPool <T> .Release(component);
コード例 #4
0
ファイル: GameObjectPool.cs プロジェクト: r2d2m/WFC-Demo
 public static T Get <T>(string name) where T : Component
 => PerComponentPool <T> .Get(name);