private void UpdateNames(PlayerNumber _pl) { SelecterStates state = null; CharaSelectorSet set = new CharaSelectorSet(); Images images = null; if (_pl == PlayerNumber.player1) { state = this.pl1States; set = this.charaSelectorSets[state.NowIndex]; images = this.pl1Images; } if (_pl == PlayerNumber.player2) { state = this.pl2States; set = this.charaSelectorSets[state.NowIndex]; images = this.pl2Images; } if (set.PlayerCharacter == PlayerCharacterEnum.length_empty) { images.SetNameImages(null, null); images.Kana.enabled = false; images.Alp.enabled = false; } else { images.Kana.enabled = true; images.Alp.enabled = true; images.SetNameImages(set.KanaName, set.AlpName); } }
private void UpdateStand(PlayerNumber _pl) { CharaSelectorSet set = new CharaSelectorSet(); SelecterStates state = null; Images images = null; Sprite sprite = null; if (_pl == PlayerNumber.player1) { state = this.pl1States; set = this.charaSelectorSets[state.NowIndex]; images = this.pl1Images; sprite = set.StandPL1; } if (_pl == PlayerNumber.player2) { state = this.pl2States; set = this.charaSelectorSets[state.NowIndex]; images = this.pl2Images; sprite = set.StandPL2; } if (set.PlayerCharacter == PlayerCharacterEnum.length_empty) { images.StandFront.sprite = null; images.StandFront.enabled = false; } else { images.StandFront.enabled = true; images.StandFront.sprite = sprite; } }