错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Using Signals

  • Wallace Wang,
  • Tonnetta Walcott

摘要

No matter what programming language you use, the main goal is to break a large program into smaller parts known as functions. If the project is not broken down, then the program will be difficult to follow. At the simplest level, you can attach a GDScript to a node and divide that code into one or more functions. Some functions can run automatically when certain events occur, such as when the game starts. Other functions will only run when specifically called from other GDScript codes stored in the same file.