Merge branch '22.10.2021_Zakhar' into develop

This commit is contained in:
DyatelO 2021-10-25 22:42:02 +03:00
commit d4200ae24d
4 changed files with 36 additions and 326 deletions

View File

@ -17,20 +17,24 @@ public class MainWeapon : MonoBehaviour
_attackEnergiController = GetComponent<AttackEnergyController>();
_characterWeapon = GetComponent<PlayerState>();
if(StateWeapon._chosenWeapon != null )
{
_characterWeapon.defaultAction = StateWeapon._chosenWeapon;
_attackResetTime = StateWeapon._resetTime;
_attackCost = StateWeapon._attackCost;
_attackEnergiController.attackResetTime = _attackResetTime;
_attackEnergiController.attackCost = _attackCost;
}
else
{
_attackResetTime = 3f;
_attackCost = 1f;
_attackEnergiController.attackResetTime = _attackResetTime;
_attackEnergiController.attackCost = _attackCost;
}
_attackResetTime = StateWeapon._resetTime;
_attackCost = StateWeapon._attackCost;
_attackEnergiController.attackResetTime = _attackResetTime;
_attackEnergiController.attackCost = _attackCost;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
m_EditorVersion: 2020.3.10f1
m_EditorVersionWithRevision: 2020.3.10f1 (297d780c91bc)
m_EditorVersion: 2020.3.12f1
m_EditorVersionWithRevision: 2020.3.12f1 (b3b2c6512326)