private void ResetPathfindingType() { boxCollider2D.enabled = true; pathfindingType = defaultPathfindingType; animator.SetBool("Scattering", false); animator.SetBool("Dead", false); }
public void InvokeScatter() { animator.SetBool("Scattering", true); pathfindingType = PathfindingTypes.Scatter; Invoke("ResetPathfindingType", 5.0f); }
public void Die() { animator.SetBool("Dead", true); pathfindingType = PathfindingTypes.StartReset; boxCollider2D.enabled = false; }