public void RegisterForGame() { registeredPlayers.Remove(currentActiveRecipe); currentActiveRecipe = new PlayerCreationRecipe (name.text, isNPC.isOn, colorToggle.value, weapon.value, controlProfile.value); Debug.Log ("weapon value is " + weapon.value); registeredPlayers.Add (currentActiveRecipe); thisPanel.GetComponent<Image> ().color = Color.green; GameSetupHandler.CheckForGameStart (); }
// Use this for initialization void Start() { currentActiveRecipe = new PlayerCreationRecipe ("NPC", true, Random.Range (0, 4), Random.Range(0,1), 0); //registeredPlayers.Add (currentActiveRecipe); activePlayerforms++; }