function _InitFont_() { return [ { path = "Fonts/VonwaonBitmap-12px.ttf", size = 12 }, { path = "Fonts/VonwaonBitmap-12px.ttf", size = 24 }, { path = "Fonts/NotoSansSC-Light.otf", size = 12 } ]; } function main() { //初始化随机数种子 srand(time()); local SM = StateMachine.GetInstance(); SM.RegisterState(CHARACTERJOB.SWORDMAN, "Character_Rest", 0); SM.RegisterState(CHARACTERJOB.SWORDMAN, "Character_Move", 1); }