added temp scene and wave based enemy
This commit is contained in:
@@ -35,7 +35,6 @@ namespace Darkmatter.Domain
|
||||
{
|
||||
if (enemyPawn.isDead) return;
|
||||
base.Update();
|
||||
Debug.Log("Update in Patrol State");
|
||||
HandlePatrol();
|
||||
CheckForStateBreak();
|
||||
}
|
||||
@@ -56,7 +55,6 @@ namespace Darkmatter.Domain
|
||||
|
||||
if(Vector3.Distance(target.position,enemyPawn.ReturnMyPos()) < 0.5f) //close enought to targetPatrolPoint
|
||||
{
|
||||
Debug.Log("Reached Point");
|
||||
currentPatrolPointIndex = (currentPatrolPointIndex+1)%enemyPawn.PatrolPoints.Count;
|
||||
}
|
||||
}
|
||||
@@ -65,7 +63,6 @@ namespace Darkmatter.Domain
|
||||
{
|
||||
base.Exit();
|
||||
enemyAnimController.PlayWalkAnim(false);
|
||||
Debug.Log("Exiting Patrol State");
|
||||
enemyPawn.OnHealthDecreased -= HandleHealth;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user