コード例 #1
0
ファイル: GameManager.cs プロジェクト: p-buddy/JamUp
 public void Start()
 {
     player         = player ?? new AudioSourcePool();
     clipRegister   = clipRegister ?? new ClipRegister();
     entitySpawner  = entitySpawner ?? new EntitySpawner();
     luaInterpreter = luaInterpreter ?? new LuaInterpreter();
 }
コード例 #2
0
ファイル: GameManager.cs プロジェクト: p-buddy/JamUp
 public bool TryFetch(out IAudioEventSpawner fill)
 {
     fill = entitySpawner;
     return(!(fill is null));
 }
コード例 #3
0
ファイル: GameManager.cs プロジェクト: p-buddy/JamUp
 public void Set(IAudioEventSpawner toSet) => entitySpawner = toSet;