Basically when the code says
public static Camera Instance
{
// Code and something with get statement
}
Is it declaring a method? I don't think it is a method because there is no parenthesis to indicate the area to put in parameters. Here is the full class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace ScrollingTest
{
public class Camera
{
private static Camera instance;
public static Camera Instance
{
get
{
if (instance == null)
instance = new Camera();
return instance;
}
}
}
}