Esempio n. 1
0
 public HeroClass(string name, int ID, HeroClassType type, int movementSpeed, float attackSpeed, int armor, int lowDamage, int maxDamage, int health, int mana, byte inventorySize, int visionDay, int visionNight)
 {
     heroClassName          = name;
     heroClassID            = ID;
     heroClassType          = type;
     heroClassMovementSpeed = movementSpeed;
     heroClassAttackSpeed   = attackSpeed;
     heroClassArmor         = armor;
     heroClassLowDamage     = lowDamage;
     heroClassMaxDamage     = maxDamage;
     heroClassHealth        = health;
     heroClassMana          = mana;
     heroClassIcon          = Resources.Load <Texture2D> ("Hero Class/" + name);
     heroClassPrefab        = Resources.Load <GameObject> ("Hero Class/" + name);
     heroClassInventorySize = inventorySize;
     heroClassVisionDay     = visionDay;
     heroClassVisionNight   = visionNight;
 }
Esempio n. 2
0
 public static void LastClass(HeroClassType value)
 {
     Preferences.Instance.Put(Preferences.KEY_LAST_CLASS, (int)value);
 }