void Awake() { if (instance != null) { GameObject.Destroy(instance); } else { instance = this; } DontDestroyOnLoad(this); maxLines = 11; }
// Start is called before the first frame update void Start() { eventLog = GetComponent <EventLogScript>(); gameManager = GetComponent <GameManagerScript>(); }