private void Awake()
{
// If an instance already exists then delete this copy
if (!ReferenceEquals(Instance, null))
{
Destroy(gameObject);
return;
}
// Assign the static reference to this object
Instance = this;
// This object should move through scenes
DontDestroyOnLoad(gameObject);
}