private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } DontDestroyOnLoad(this.transform.parent.gameObject); }
void Awake() { loadoutController = gameObject.GetComponentInParent <LoadoutController>(); highlightImage = GetComponentInChildren <Image>(); }