void Awake() { displayMoney = FindObjectOfType <DisplayMoney>(); displayDate = FindObjectOfType <DisplayDate>(); UpdateMoney(); UpdateDate(); }
// Use this for initialization void Start() { DisplayMoneyInstantion = (DisplayMoney)obj.GetComponent(typeof(DisplayMoney)); output = "[robot]> What do you want me to do?"; }