Исправлен расход энергии при обычном старте.
This commit is contained in:
parent
4d27f34ecf
commit
bba96a031e
@ -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
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user