Fixed invalid indexing in TextureCube.cs