Exemple #1
0
    void OnDisable()
    {
        Dome.SetActive(true);
        mProjector.gameObject.SetActive(false);
        mParticleEmitter.gameObject.SetActive(false);
        if (mCameraShake != null)
        {
            mCameraShake.EndShake();
        }

        // Rescale dome bolts back in
        if (mBoltsRescalings != null)
        {
            for (int i = 0; i < mBoltsRescalings.Length; i++)
            {
                DomeBolts.transform.GetChild(i).localScale -= new Vector3(0.0f, 0.0f, mBoltsRescalings[i]);
            }
        }
    }