11 lines
252 B
Plaintext
11 lines
252 B
Plaintext
function main() {
|
|
//初始化随机数种子
|
|
srand(time());
|
|
|
|
|
|
|
|
local SM = StateMachine.GetInstance();
|
|
|
|
SM.RegisterState(CHARACTERJOB.SWORDMAN, "Character_Rest", 0);
|
|
SM.RegisterState(CHARACTERJOB.SWORDMAN, "Character_Move", 1);
|
|
} |