void Start() { Debug.Assert(touchToStart != null); Debug.Assert(touchInterface != null); touchInterface.Subscribe(delegate(object o, TouchCompleteArg arg) { currentState = State.Starting; }); }
void UpdateSetting() { currentState = State.Floating; config = configHolder.Configuration; if (!config.DidConfigure()) { Debug.Log("Could not stride configuration! Use default value"); SetDefaultConfiguration(); } progress.InitCount(config.times); currentChar = GetNextChar(); touchInterface.EnablePlayOnComplete = false; touchInterface.Z = phrase.Z; touchInterface.SubscribeTouchBegin(OnTouchBegin); touchInterface.Subscribe(OnTouchComplete); }