示例#1
0
 public GameService(IRepository <User> userRepo, IUserService userService, IRepository <GuessedUser> guessUserRepo, IAchievmentService achievmentService)
 {
     this.userRepo          = userRepo;
     this.userService       = userService;
     this.guessUserRepo     = guessUserRepo;
     this.achievmentService = achievmentService;
 }
        public void Setup(AchievmentData data)
        {
            IAchievmentService service = engine.GetService <IAchievmentService>();

            iconImage.overrideSprite = service.IsTierUnlocked(data, tier) ? openedSprite : closedSprite;
        }
 public ProfileController(IUserService userService, ICategoryService categoryService, IAchievmentService achivService)
 {
     this.userService     = userService;
     this.categoryService = categoryService;
     this.achivService    = achivService;
 }