Recently I started messing with unity, began to look at examples of scripts and came across such a construction:
public class MakeFX : MonoBehaviour { private static MakeFX instance; public static MakeFX Instance { get { if (instance == null) instance = GameObject.FindObjectOfType<MakeFX>(); return instance; } } ... } After C ++, this construction looks strange to me. Googling help in msdn did not get any better. Explain what it is and why it is needed.