本文整理汇总了C#中Kind.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Kind.ToString方法的具体用法?C# Kind.ToString怎么用?C# Kind.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Kind
的用法示例。
在下文中一共展示了Kind.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddSpectrum
public void AddSpectrum(Discipline newSpectrum, int level = 1)
{
if(spectrum1 == null){
spectrum1 = newSpectrum;
Globals.Instance.playerData.spectrum1 = spectrum1.spectrumName.ToString();
kind = Kind.vampire;
Globals.Instance.playerData.charKind = kind.ToString();
UIManager.EnableBloodUI(true);
} else {
if(spectrum2 == null){
if(newSpectrum != spectrum1)
spectrum2 = newSpectrum;
} else {
if(spectrum3 == null){
if(newSpectrum != spectrum2 && newSpectrum != spectrum1)
spectrum3 = newSpectrum;
}
}
}
for(int p = 1; p <= level; p++){
if(newSpectrum.powers.Count >= p){
if(newSpectrum.powers[p-1] != null)
if(!powers.Contains(newSpectrum.powers[p-1]))
powers.Add(newSpectrum.powers[p-1]);
}
}
UIManager.PowerIcon = powers[currentPower].iconPower;
// UIManager.Instance.UpdateUI();
}
示例2: Play
public void Play(Kind k)
{
emotionKind = k;
if( k == Kind.None ) {
SetVisible(false);
} else {
SetVisible(true);
string s = k.ToString();
Debug.Log ("[Emotion] playing " + s);
emotionChip.Play (s);
}
}