Implement Molotov Cocktail
This commit is contained in:
parent
938a56231a
commit
a37adf2972
17 changed files with 255 additions and 20 deletions
16
Assets/Battle/Triggers/StepTrigger.cs
Normal file
16
Assets/Battle/Triggers/StepTrigger.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
public class StepTrigger : Trigger {
|
||||
|
||||
private RoundStep step;
|
||||
|
||||
public StepTrigger(RoundStep step, TriggeredEffect callback,
|
||||
TriggerExpiration expiration, TriggerRepetition repetition)
|
||||
: base(callback, expiration, repetition) {
|
||||
this.step = step;
|
||||
}
|
||||
|
||||
public bool IsTriggeredBy(BattleTime time) {
|
||||
return time.RoundStep == this.step;
|
||||
}
|
||||
}
|
||||
11
Assets/Battle/Triggers/StepTrigger.cs.meta
Normal file
11
Assets/Battle/Triggers/StepTrigger.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f369bcd44b59b1345a33d76373db6a21
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue