Transform() public method

public Transform ( ) : void
return void
Esempio n. 1
0
    // Updates the vertices of a sprite based on the transform
    // of its client GameObject
    public void Transform(Zprite sprite)
    {
        sprite.Transform();

        vertsChanged = true;
    }
Esempio n. 2
0
    public void ShowSprite(Zprite sprite)
    {
        // Only show the sprite if it has a client:
        // if(sprite.client == null)
        //  return;

        if(sprite.billboarded)
            activeBillboards.Add(sprite);
        else
            activeBlocks.Add(sprite);

        sprite.hidden = false;

        // Update the vertices:
        sprite.Transform();

        vertsChanged = true;
    }