Sets the texture and frame this Game Object will use to render with.
Textures are referenced by their string-based keys, as stored in the Texture Manager.
|key||string | Phaser.Textures.Texture||
The key of the texture to be used, as stored in the Texture Manager, or a Texture instance.
|frame||string | number||<optional>||
The name or index of the frame within the Texture.
This Game Object instance.