public JournalMessages GetRecords(JournalCondition condition) { var messages = new JournalMessages { Messages = condition.Reverse ? GetBeforeTimeRecords(condition) : GetAfterTimeRecords(condition) }; return(messages); }
private void Awake() { //Ensure singleton if (Instance != null && Instance != this) { Destroy(this.gameObject); } else { Instance = this; } // Cache references to variables GameObject ThePlayer = GameObject.Find("Player"); player = ThePlayer.GetComponent <Player>(); messages = ThePlayer.GetComponent <JournalMessages>(); }