Many changes to Invector inventory system, added WIP UI system, added implementation for max stamina, moving speed, attack speed, attack power, thorns
This commit is contained in:
@@ -48,17 +48,15 @@ namespace Beyond
|
||||
{
|
||||
if (m != this)
|
||||
{
|
||||
Members = new List<vBodyMember>();
|
||||
for (int i = 0; i < m.Members.Count; i++)
|
||||
{
|
||||
Members.Add(m.Members[i]);
|
||||
}
|
||||
|
||||
this.hitProperties = m.hitProperties;
|
||||
this.defaultDamage = m.defaultDamage;
|
||||
this.defaultDefenseRate = m.defaultDefenseRate;
|
||||
this.defaultAttackDistance = m.defaultAttackDistance;
|
||||
this.defaultStaminaCost = m.defaultStaminaCost;
|
||||
// This copies EVERY Serialized field from 'm' to 'this'
|
||||
// It works perfectly because bMeleeManager inherits vMeleeManager
|
||||
JsonUtility.FromJsonOverwrite(JsonUtility.ToJson(m), this);
|
||||
|
||||
// Re-run init to apply the copied data
|
||||
this.Init();
|
||||
|
||||
// Stop after finding the first match so we don't copy ourselves if checking later
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user