ActionAdventureKit 1.5.4
|
a character instruction can be any kind of change applied to a character
all these changes(movement speed, collision suspension, ...) could be just directly applied without creating an instruction
bundling them in this form averts the problem of different components fighting for control(eg. both an animation and an item reduce movement speed at the same time)
another advantage of instructions is that they can be added directly in the inspector which can add lots of flexibility to actions
IF UNITY RANDOMLY DECIDES THAT AN INSTRUCTION IS SUDDENLY NULL TRY REIMPORTING ALL ASSETS TO CLEAR CACHE
Public Member Functions | |
void | Reset (CharacterBase character) |
reset whatever the instruction is affecting to its original value or remove whatever influence the instruction has had from the character | |
void | Apply (CharacterBase character) |
apply the instruction, whenever a new instruction is added all instructions are reset and applied again | |
Properties | |
object | Owner [get, set] |
|
abstract |
apply the instruction, whenever a new instruction is added all instructions are reset and applied again
character | the character the instructio is applied to |
|
abstract |
reset whatever the instruction is affecting to its original value or remove whatever influence the instruction has had from the character
character | the character the instructio is applied to |