public AccountsController(IWebHostEnvironment env, IConfiguration config, RepManager repManager) { this.env = env; this.config = config; this.repManager = repManager; }
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; }
// 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")); } }