コード例 #1
0
 public void TextAppearance(EPICKUP type)
 {
     if (type == EPICKUP.ProtectedShield)
     {
         ScaleAndColor(blue, small, "Protecion Shield");
     }
     else if (type == EPICKUP.DamageShield)
     {
         ScaleAndColor(red, small, "Damage Shield");
     }
 }
コード例 #2
0
 public void TextAppearance(int value, EPICKUP type)
 {
     if (type == EPICKUP.Ammo)
     {
         ScaleAndColor(brown, small, "+", value, "Eggs");
     }
     else if (type == EPICKUP.cash)
     {
         ScaleAndColor(gold, 1.3f, "+", value, "$");
     }
     else if (type == EPICKUP.Consumable)
     {
         ScaleAndColor(green, small, "-", value, "Hunger");
     }
     else if (type == EPICKUP.ProtectedShield || type == EPICKUP.DamageShield)
     {
         TextAppearance(type);
     }
 }
コード例 #3
0
 public void CreateScoreText(int score, EPICKUP type)
 {
     TextSettings();
     ft.TextAppearance(score, type);
 }