コード例 #1
0
 public AccountsController(IWebHostEnvironment env, IConfiguration config,
                           RepManager repManager)
 {
     this.env        = env;
     this.config     = config;
     this.repManager = repManager;
 }
コード例 #2
0
ファイル: RepsController.cs プロジェクト: CodyDuff/SurveyApi
 public RepsController(ILogger <RepsController> logger, IConfiguration config,
                       RepManager repManager, AssignmentManager assignmentManager,
                       PeriodManager periodManager, AttemptLogManager attemptLogManager)
 {
     this.config            = config;
     this.logger            = logger;
     this.repManager        = repManager;
     this.assignmentManager = assignmentManager;
     this.attemptLogManager = attemptLogManager;
     this.periodManager     = periodManager;
 }
コード例 #3
0
ファイル: GameManager.cs プロジェクト: Volatile-Element/TC
    // Use this for initialization
    void Start()
    {
        if (dynamicObjectHolder == null)
        {
            if (GameObject.Find("Dynamic Object Holder") != null)
            {
                dynamicObjectHolder = GameObject.Find("Dynamic Object Holder");
            }
            else
            {
                dynamicObjectHolder = new GameObject("Dynamic Object Holder");
            }
        }

        saveName = "TEST";
        mapName  = "EarthContinents";
        populatePlayerList();
        try
        {
            rm = GameObject.Find("RepManager").GetComponent <RepManager>();
            rm.SetSaveNames(saveName, mapName);
            rm.InitRepSystem();
            regionNames = rm.GetRegions();
            rm.GetRegionWeightingsByDifficulty(0.5);
            //mm.InitMissionCreator();
        }
        catch
        {
            Debug.Log("No Rep Manager");
        }

        if (PlayerPrefs.GetInt("Colours Set") == 1)
        {
            Camera.main.backgroundColor = new Color(PlayerPrefs.GetFloat("Background ColourR"), PlayerPrefs.GetFloat("Background ColourG"), PlayerPrefs.GetFloat("Background ColourB"));
        }
    }