public virtual void DoMirror()
 {
     if (Application.isPlaying)
     {
         return;
     }
     if (this.mirror == null)
     {
         this.mirror = new ControlBaseMirror();
         this.mirror.Mirror(this);
     }
     this.mirror.Validate(this);
     if (this.mirror.DidChange(this))
     {
         this.mirror.Mirror(this);
     }
 }
Exemplo n.º 2
0
    //---------------------------------------------------
    // Edit-time updating stuff
    //---------------------------------------------------

    // Uses the mirror object to validate and respond
    // to changes in our inspector.
    public virtual void DoMirror()
    {
        // Only run if we're not playing:
        if (Application.isPlaying)
        {
            return;
        }

        if (mirror == null)
        {
            mirror = new ControlBaseMirror();
            mirror.Mirror(this);
        }

        mirror.Validate(this);

        // Compare our mirrored settings to the current settings
        // to see if something was changed:
        if (mirror.DidChange(this))
        {
            mirror.Mirror(this);                // Update the mirror
        }
    }
Exemplo n.º 3
0
	//---------------------------------------------------
	// Edit-time updating stuff
	//---------------------------------------------------

	// Uses the mirror object to validate and respond
	// to changes in our inspector.
	public virtual void DoMirror()
	{
		// Only run if we're not playing:
		if (Application.isPlaying)
			return;

		if (mirror == null)
		{
			mirror = new ControlBaseMirror();
			mirror.Mirror(this);
		}

		mirror.Validate(this);

		// Compare our mirrored settings to the current settings
		// to see if something was changed:
		if (mirror.DidChange(this))
		{
			mirror.Mirror(this);	// Update the mirror
		}
	}