コード例 #1
0
        public void Init()
        {
            var obj = new GameObject();

            _factory = obj.AddComponent <PlayerBoxFactory>();
            _factory.ContainerPrefabs = new GameObject().AddComponent <PlayerBox>();
            _factory.Init();
        }
コード例 #2
0
 public PlayerBoxCreatingSystem(Contexts contexts, PlayerBoxFactory boxFactory)
 {
     _context = contexts.game;
     _factory = boxFactory;
 }