Ejemplo n.º 1
0
        public JournalMessages GetRecords(JournalCondition condition)
        {
            var messages = new JournalMessages
            {
                Messages = condition.Reverse
                                           ? GetBeforeTimeRecords(condition)
                                           : GetAfterTimeRecords(condition)
            };

            return(messages);
        }
Ejemplo n.º 2
0
    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>();
    }