add resetCounter method to player entity and integrate into game reset
This commit is contained in:
@@ -621,5 +621,14 @@ public class Entity {
|
||||
invincibleCount = 0;
|
||||
}
|
||||
}
|
||||
public void resetCounter() {
|
||||
spriteCount = 0;
|
||||
actionLock = 0;
|
||||
invincibleCount = 0;
|
||||
shotAvailableCount = 0;
|
||||
dyingCount = 0;
|
||||
hpBarCount = 0;
|
||||
knockbackCount = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user