Example #1
0
        public void UpdateText()
        {
            if (intervalInterface == null)
            {
                return;
            }

            if (Title != null)
            {
                Title.OnTextUpdate.Invoke(intervalInterface.NodeDescriptor(interval));
            }

            if (Reward != null)
            {
                Reward.OnTextUpdate.Invoke(intervalInterface.RewardText(interval));
            }
        }
Example #2
0
        public void setNode(IIntervalNode node, int i)
        {
            if (node == null)
            {
                return;
            }

            intervalInterface = node;

            interval = i;

            if (Title != null)
            {
                Title.OnTextUpdate.Invoke(intervalInterface.NodeDescriptor(interval));
            }

            if (Reward != null)
            {
                Reward.OnTextUpdate.Invoke(node.RewardText(i));
            }
        }