Merge branch '22.10.2021_Zakhar' into develop
This commit is contained in:
commit
d4200ae24d
@ -18,19 +18,23 @@ public class MainWeapon : MonoBehaviour
|
|||||||
|
|
||||||
_characterWeapon = GetComponent<PlayerState>();
|
_characterWeapon = GetComponent<PlayerState>();
|
||||||
|
|
||||||
|
|
||||||
if(StateWeapon._chosenWeapon != null )
|
if(StateWeapon._chosenWeapon != null )
|
||||||
{
|
{
|
||||||
_characterWeapon.defaultAction = StateWeapon._chosenWeapon;
|
_characterWeapon.defaultAction = StateWeapon._chosenWeapon;
|
||||||
|
|
||||||
|
_attackResetTime = StateWeapon._resetTime;
|
||||||
|
_attackCost = StateWeapon._attackCost;
|
||||||
|
|
||||||
|
_attackEnergiController.attackResetTime = _attackResetTime;
|
||||||
|
_attackEnergiController.attackCost = _attackCost;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_attackResetTime = 3f;
|
||||||
|
_attackCost = 1f;
|
||||||
|
|
||||||
|
_attackEnergiController.attackResetTime = _attackResetTime;
|
||||||
_attackResetTime = StateWeapon._resetTime;
|
_attackEnergiController.attackCost = _attackCost;
|
||||||
_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_EditorVersion: 2020.3.12f1
|
||||||
m_EditorVersionWithRevision: 2020.3.10f1 (297d780c91bc)
|
m_EditorVersionWithRevision: 2020.3.12f1 (b3b2c6512326)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user