add some extra assets FX and SFX
This commit is contained in:
@@ -167,6 +167,8 @@ public class AICloseCombatSystemBrain : MonoBehaviour
|
||||
|
||||
public bool ignoreOtherActionsToForceAttackActive;
|
||||
|
||||
public bool ignoreRandomWalkActive;
|
||||
|
||||
[Space]
|
||||
[Header ("Events Settings")]
|
||||
[Space]
|
||||
@@ -960,6 +962,10 @@ public class AICloseCombatSystemBrain : MonoBehaviour
|
||||
|
||||
if (randomWalkEnabled) {
|
||||
|
||||
if (ignoreRandomWalkActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (blockActive) {
|
||||
return;
|
||||
}
|
||||
@@ -1131,7 +1137,7 @@ public class AICloseCombatSystemBrain : MonoBehaviour
|
||||
waitToActivateAttackActive = state;
|
||||
|
||||
if (activateRandomWalkIfWaitToActivateAttackActive) {
|
||||
if (state) {
|
||||
if (state && !ignoreRandomWalkActive) {
|
||||
currentWalkTime = Random.Range (randomWalkWaitTime.x, randomWalkWaitTime.y);
|
||||
|
||||
currentWalkDuration = Random.Range (randomWalkDuration.x, randomWalkDuration.y);
|
||||
@@ -1164,6 +1170,10 @@ public class AICloseCombatSystemBrain : MonoBehaviour
|
||||
{
|
||||
setUseRandomWalkEnabledState (originalRandomWalkEnabled);
|
||||
}
|
||||
public void setIgnoreRandomWalkActiveState (bool state)
|
||||
{
|
||||
ignoreRandomWalkActive = state;
|
||||
}
|
||||
|
||||
public void resetBehaviorStates ()
|
||||
{
|
||||
|
||||
@@ -13,7 +13,8 @@ MonoImporter:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 40995
|
||||
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
|
||||
packageVersion: 3.77g
|
||||
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
|
||||
2.5D
|
||||
packageVersion: 3.77h
|
||||
assetPath: Assets/Game Kit Controller/Scripts/AI/Close Combat/AICloseCombatSystemBrain.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
Reference in New Issue
Block a user