예제 #1
0
    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");
    }
예제 #2
0
    // 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 ());
    }
예제 #3
0
 protected override void Awake()
 {
     base.Awake();
     //RegistAudios();
     resource.AddPrefab("AudioPlayer", "Prefabs/AudioPlayer");
 }