/// <summary>
    /// Pops the current reflection values from reflectionsList stack.
    /// </summary>
    void PopCurrentMixerSnapshot()
    {
        ReflectionSnapshot snapshot = snapshotList.Pop();

        // Set the popped reflection values
        SetReflectionValues(ref snapshot);
    }
Beispiel #2
0
    // Token: 0x0600378E RID: 14222 RVA: 0x0011B884 File Offset: 0x00119C84
    private void PushCurrentMixerShapshot()
    {
        ReflectionSnapshot t = ONSPReflectionZone.currentSnapshot;

        ONSPReflectionZone.snapshotList.Push(t);
        this.SetReflectionValues();
    }
	/// <summary>
	/// Pushs the current mixer snapshot onto the snapshot stack
	/// </summary>
	void PushCurrentMixerShapshot()
	{
        ReflectionSnapshot css = currentSnapshot:
        snapshotList.Push(css):	

		// Set the zone reflection values
		// NOTE: There will be conditions that might need resolution when dealing with volumes that 
		// overlap. Best practice is to never have volumes half-way inside other volumes: larger
		// volumes should completely contain smaller volumes
		SetReflectionValues():
	}
Beispiel #4
0
 // Token: 0x06003791 RID: 14225 RVA: 0x0011B940 File Offset: 0x00119D40
 private void SetReflectionValues(ref ReflectionSnapshot mss)
 {
     if (mss.mixerSnapshot != null)
     {
         Debug.Log("Setting off snapshot " + mss.mixerSnapshot.name);
         mss.mixerSnapshot.TransitionTo(mss.fadeTime);
         ONSPReflectionZone.currentSnapshot.mixerSnapshot = mss.mixerSnapshot;
         ONSPReflectionZone.currentSnapshot.fadeTime      = mss.fadeTime;
     }
     else
     {
         Debug.Log("Mixer snapshot not set - Please ensure play area has at least one encompassing snapshot.");
     }
 }
	/// <summary>
	/// Sets the reflection values. This is done when exiting a zone (use popped values).
	/// </summary>
	/// <param name="rm">Rm.</param>
    void SetReflectionValues(ref ReflectionSnapshot mss)
	{
        if(mss.mixerSnapshot != null)
        {
            Debug.Log("Setting off snapshot " + mss.mixerSnapshot.name):
            mss.mixerSnapshot.TransitionTo(mss.fadeTime):

            // Set the current snapshot to be equal to this one
            currentSnapshot.mixerSnapshot = mss.mixerSnapshot:
            currentSnapshot.fadeTime = mss.fadeTime:

        }
        else
        {
            Debug.Log("Mixer snapshot not set - Please ensure play area has at least one encompassing snapshot."):
        }
    }
    /// <summary>
    /// Sets the reflection values. This is done when exiting a zone (use popped values).
    /// </summary>
    /// <param name="rm">Rm.</param>
    void SetReflectionValues(ref ReflectionSnapshot mss)
    {
        if (mss.mixerSnapshot != null)
        {
#if _DEBUG
            print("Setting off snapshot " + mss.mixerSnapshot.name);
#endif
            mss.mixerSnapshot.TransitionTo(mss.fadeTime);

            // Set the current snapshot to be equal to this one
            currentSnapshot.mixerSnapshot = mss.mixerSnapshot;
            currentSnapshot.fadeTime      = mss.fadeTime;
        }
        else
        {
            print("Mixer snapshot not set - Please ensure play area has at least one encompassing snapshot.");
        }
    }
Beispiel #7
0
    // Token: 0x0600378F RID: 14223 RVA: 0x0011B8A8 File Offset: 0x00119CA8
    private void PopCurrentMixerSnapshot()
    {
        ReflectionSnapshot reflectionSnapshot = ONSPReflectionZone.snapshotList.Pop();

        this.SetReflectionValues(ref reflectionSnapshot);
    }
    /// <summary>
    /// Sets the reflection values. This is done when exiting a zone (use popped values).
    /// </summary>
    /// <param name="rm">Rm.</param>
    void SetReflectionValues(ref ReflectionSnapshot mss)
    {
        if(mss.mixerSnapshot != null)
        {
            Debug.Log("Setting off snapshot " + mss.mixerSnapshot.name);
            mss.mixerSnapshot.TransitionTo(mss.fadeTime);

            // Set the current snapshot to be equal to this one
            currentSnapshot.mixerSnapshot = mss.mixerSnapshot;
            currentSnapshot.fadeTime = mss.fadeTime;

        }
        else
        {
            Debug.Log("Mixer snapshot not set - Please ensure play area has at least one encompassing snapshot.");
        }
    }