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)); } }
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)); } }