public void ModifyDP(string[] amount) { DateScript DS = GameObject.FindWithTag("DateController").GetComponent <DateScript>(); if (amount == null) { return; } int value; if (int.TryParse(amount[0], out value)) { DS.ModifyDP(value); } }
public void EndDateWithNoDialog() { DateScript DS = GameObject.FindWithTag("DateController").GetComponent <DateScript>(); DS.EndDateNoDialog(); }