Пример #1
0
        public override bool isValid(string currentPath, List <string> incidences)
        {
            var valid = completable != null && controller.isCharacterValid(completable.getId());

            if (valid && completable.getType() != Completable.TYPE_GAME && completable.getType() != Completable.TYPE_COMPLETABLE)
            {
                valid = false;
                incidences.Add("The completable type is not implemented: " + completable.getType());
            }

            valid &= startDataControl.isValid(currentPath, incidences);
            valid &= endDataControl.isValid(currentPath, incidences);
            valid &= progressDataControl.isValid(currentPath, incidences);
            valid &= scoreDataControl.isValid(currentPath, incidences);

            return(valid);
        }
Пример #2
0
        public void trackCompleted(Completable c)
        {
            float score = Mathf.Max(Mathf.Min(c.getScore().getScore() / 10f, 1f), 0f);

            Tracker.T.setVar("time", (DateTime.Now - times[c]).TotalSeconds);
            Tracker.T.completable.Completed(c.getId(), (CompletableTracker.Completable)c.getType(), true, score);
        }