Enemies drop energy before, intentions are more accurate

This commit is contained in:
henriquenakashima 2020-10-01 22:52:50 -04:00
parent 94b3309bb7
commit 737a851283
6 changed files with 64 additions and 13 deletions

View file

@ -78,6 +78,7 @@ public class CheatBattle: MonoBehaviour
public delegate void CheatAction();
public event CheatAction OnWinCode;
public event CheatAction OnInsightCode;
public event CheatAction OnOneHPCode;
private string lastCommands = "";
@ -94,6 +95,9 @@ public class CheatBattle: MonoBehaviour
} else if (this.lastCommands.EndsWith("insight")) {
this.OnInsightCode();
this.lastCommands = "";
} else if (this.lastCommands.EndsWith("onehp")) {
this.OnOneHPCode();
this.lastCommands = "";
}
}
}