// Use this for initialization private void Start() { audioToWave = AudioInterpreter._instance; BeginMovement(); this.GetComponent<MeshRenderer>().sortingOrder = 25; defaultScale = transform.localScale; }
private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); return; } _instance = this; DontDestroyOnLoad(this); }