| 102 | } |
| 103 | |
| 104 | void zNPCTest::Process(xScene* xscn, F32 dt) |
| 105 | { |
| 106 | transitionTimer = MAX(-1.0f, transitionTimer - dt); |
| 107 | |
| 108 | if (transitionTimer < 0.0f) |
| 109 | { |
| 110 | transitionTimer = 5.0f; |
| 111 | |
| 112 | if (++currentState >= numAnimations) |
| 113 | { |
| 114 | currentState = 0; |
| 115 | } |
| 116 | |
| 117 | AnimStart(g_hash_testanim[currentState + 1], 0); |
| 118 | } |
| 119 | |
| 120 | zNPCCommon::Process(xscn, dt); |
| 121 | } |
| 122 | |
| 123 | void zNPCTest::SelfSetup() |
| 124 | { |