public void InitData() { time = 30; score = 0; DataEvent.OnDataTriggerEvent(DataType.Time, time); DataEvent.OnDataTriggerEvent(DataType.Score, score); }
private void ReduceTime(int value) { time -= value; DataEvent.OnDataTriggerEvent(DataType.Time, time); }
public void AddScore(int value) { score += value; DataEvent.OnDataTriggerEvent(DataType.Score, score); }