void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else { Destroy(gameObject); } }
// Use this for initialization void Start() { sls = GameObject.FindGameObjectWithTag("SLS").GetComponent <Storelastscene>(); }