Enemies drop energy before, intentions are more accurate
This commit is contained in:
parent
94b3309bb7
commit
737a851283
6 changed files with 64 additions and 13 deletions
|
|
@ -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 = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue