浏览代码

Documentation fix: MonoBehaviour.OnAwake -> Awake (#3927)

`OnAwake` is not expected to exist and is thus never called
/docs-update
GitHub 5 年前
当前提交
21672879
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      docs/Migrating.md

2
docs/Migrating.md


data in the new MonoBehaviour instead.
- If the class overrode the virtual methods, create a new MonoBehaviour and
move the logic to it:
- Move the InitializeAcademy code to MonoBehaviour.OnAwake
- Move the InitializeAcademy code to MonoBehaviour.Awake
- Move the AcademyStep code to MonoBehaviour.FixedUpdate
- Move the OnDestroy code to MonoBehaviour.OnDestroy.
- Move the AcademyReset code to a new method and add it to the

正在加载...
取消
保存