public void Awake() { if (Instance == null) { Instance = this; } else { Destroy(this); } }
public void Awake() { if (gameObject.GetComponent <Seaglide>() == null) { Destroy(this); } else { Main = this; } }