示例#1
0
    // Use this for initialization
    void Awake()
    {
        if (singleton == null)
        {
            singleton = this;
        }
        else if (singleton != this)
        {
            Destroy(gameObject);
        }

        bulletPool        = new List <k514BulletBridge>();
        bulletDisablePool = new List <k514BulletBridge> [(int)BULLET_TYPE.END];
        for (int i = 0; i < (int)BULLET_TYPE.END; i++)
        {
            bulletDisablePool[i] = new List <k514BulletBridge>();
        }
    }
示例#2
0
 void Start()
 {
     BulletMgr   = k514BulletManager.singleton;
     MathMgr     = k514MathManager.singleton;
     InteractMgr = k514InteractManager.singleton;
     EnemyMgr    = k514EnemyManager.singleton;
     BlockMgr    = k514StageBlockManager.singleton;
     ItemMgr     = k514ItemManager.singleton;
     GameMgr     = k514GamePlayManager.singleton;
     UI_SpecaMgr = k514UISpellCardManager.singleton;
     SerifuMgr   = k514SerifuManager.singleton;
     SoundMgr    = k514SoundManager.singleton;
     EffectMgr   = k514EffectManager.singleton;
     OptionMgr   = k514OptionManager.singleton;
     if (SoundMgr == null)
     {
         Instantiate(snd).parent = transform;
         SoundMgr = k514SoundManager.singleton;
     }
 }