コード例 #1
0
    // Use this for initialization
    void Start()
    {
        if (singleton == null)
        {
            singleton = this;
        }
        else if (this != singleton)
        {
            Destroy(gameObject);
        }

        target     = new k514EventPanel[Pfab.Length];
        charaInfo  = new CharacterStatus[Pfab.Length];
        serifuList = new List <SerifuContainer>();
        // DontDestroyOnLoad(this);
    }
コード例 #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;
     }
 }