예제 #1
0
 public static GameObject InstancieEDestrua(AttackNameId nomeGolpe,
                                            Vector3 posInicial,
                                            Vector3 forwardInicial,
                                            float tempoDeGolpe)
 {
     return(InstancieEDestrua("Attacks/" + nomeGolpe.ToString(), posInicial, forwardInicial, tempoDeGolpe));
 }
예제 #2
0
 public static string NomeEmLinguas(AttackNameId nome)
 {
     string[] arr = TextBank.RetornaListaDeTextoDoIdioma(TextKey.nomesDosGolpes).ToArray();
     if (arr.Length > (int)nome)
     {
         return(arr[(int)nome]);
     }
     else
     {
         Debug.LogError("O array de nomes de golpes não contem um nome para o ID= " + nome);
         return(nome.ToString());// BancoDeTextos.falacoes[heroi.lingua]["listaDeGolpes"][(int)Nome];
     }
 }
예제 #3
0
 public static Sprite GetMiniAttack(AttackNameId atk)
 {
     return(Resources.Load <Sprite>("miniGolpes/" + atk.ToString()));
 }