void RegistPrefabs() { ResourceManager mgr = resourceManager.GetComponent <ResourceManager>(); mgr.AddPrefab("ENEMY0", "Prefabs/Enemy MushroomRed"); mgr.AddPrefab("ENEMY1", "Prefabs/Enemy MushroomBlue"); mgr.AddPrefab("ENEMY2", "Prefabs/Enemy goblin"); mgr.AddPrefab("ENEMY3", "Prefabs/Enemy Necromancer"); mgr.AddPrefab("ENEMY4", "Prefabs/Enrmy CaveWorm"); }
// Use this for initialization void Awake() { initial_bullet = 200; bullet_arrays = new BulletType[3][]; now_bullet_num = new int[3] { 0, 0, 0 }; //大砲ごとのbullet for (int i = 0; i < 3; i++) { bullet_arrays[i] = new BulletType[initial_bullet]; bullet_arrays[i] = MakeBulletsList(initial_bullet); } for (int i = 0; i < Enum.GetNames(typeof(BulletType)).Length; i++) { string bullet_key, bullet_prefabs_path; bullet_key = ((BulletType)i).ToString(); //Debug.Log (bullet_key); bullet_prefabs_path = "Prefabs/Bullet/" + bullet_key; rsmgr.AddPrefab(bullet_key, bullet_prefabs_path, false); } //StartCoroutine(rsmgr.LoadPrefabs ()); }
protected override void Awake() { base.Awake(); //RegistAudios(); resource.AddPrefab("AudioPlayer", "Prefabs/AudioPlayer"); }