private void Awake() { if (current == null)//makes the script a singleton { current = this; } else { Destroy(gameObject); } }
private void Awake() { current = this; }