예제 #1
0
    /// <summary>
    /// Init CSoundEngine, CLevel, the screen size and CCamera
    /// </summary>
    public void Init()
    {
        m_SoundEngine = new CSoundEngine();
        m_SoundEngine.Init();
        m_SoundEngine.LoadBank(soundbankName);

        m_Level = new CLevel();
        m_Level.Init();
        m_nScreenWidth  = 1024;
        m_nScreenHeight = 768;
        m_Camera        = new CCamera();
        m_Camera.Init();
    }
예제 #2
0
파일: CGame.cs 프로젝트: Khoyo/mini_ld_48
    // Use this for initialization
    void Start()
    {
        CApoilInput.Init();

        m_SoundEngine = new CSoundEngine();
        m_SoundEngine.Init();
        m_SoundEngine.LoadBank(soundbankName);

        m_bInGame = true;
        m_bWin = false;

        m_nNbReparation = 0;
        m_pTrucAReparer = GameObject.FindGameObjectsWithTag("TrucAReparer");
        foreach(GameObject current in m_pTrucAReparer)
            m_nNbReparation++;

        m_SoundEngine.postEvent("Play_AmbianceLabo_01", gameObject);

        m_pExplosifs = GameObject.FindGameObjectsWithTag("Explosif");
        foreach(GameObject currentExplosif in m_pExplosifs)
        {
            currentExplosif.GetComponent<CExplosif>().ArmExplosion();
        }
    }