Esempio n. 1
0
    void Awake()
    {
        ConfigCharacter c = ScriptableObject.CreateInstance <ConfigCharacter>();

        movementType = (IMovementType)c.SetupMouvement(enumMouvement);
        weaponType   = (IWeaponType)c.SetupWeapon(enumWeapon);
        this.SetupCharacter();
    }
 void InstantiateMonoWeaponButtons <T>(IWeaponType type) where T : IWeaponGadget
 {
     foreach (T item in type.Items)
     {
         var button = Instantiate <MonoWeaponButton>(monoWeaponButton, scrollRect_weaponGadget.content);
         button.ButtonInit <T>(item);
     }
 }
Esempio n. 3
0
 public IWeapon(IWeapon item)
 {
     WCategory          = item.WCategory;
     WType              = item.WType;
     FullAttackElement  = item.FullAttackElement;
     OtherAttackElement = item.OtherAttackElement;
     Stats.AddStats(item.Stats);
     Piercing         = item.Piercing;
     Piercing_Precent = item.Piercing_Precent;
     Requires         = item.Requires;
     MissileFlight    = item.MissileFlight;
     Weight           = item.Weight;
     Runes            = new List <int>(item.Runes);
     Ammunition       = new AmmunitionType(item.Ammunition);
     Name             = item.Name;
     Icon             = item.Icon;
     Category         = item.Category;
     Description      = item.Description;
     Value            = item.Value;
     Stack            = item.Stack;
     Stage            = item.Stage;
 }
Esempio n. 4
0
 public Weapon(IWeaponType type)
 {
     Type = type;
 }
Esempio n. 5
0
 public KnifeWeapon(IWeaponType type) : base(type)
 {
 }
Esempio n. 6
0
 public int GetAdvantage(IWeaponType weapon)
 {
     return(0);
 }
Esempio n. 7
0
 public AkWeapon(IWeaponType type) : base(type)
 {
 }