Pathways
LiveEducator Hub
  • Sidebar node image
    tutorial
    自定义生命值药水
Unity Version: 2020.3
Change
Steps
  • 1 自定义玩家体验
  • 2 创建并打开新的脚本文件
  • 3 查看模板脚本的内容
  • 4 将此效果添加到生命值药水
  • 5 编写效果函数
  • 6 检查效果函数
  • 7 将生命值更改为变量
  • 8 检查你的脚本更改
  • 9 教程总结
  • You finished!

Unity Version 2020.3

Other versions available

Don’t have a compatible version?

Install a new version from the Unity Hub

Continue
Language
Social
Learning
  • Pathways
  • Courses
  • Projects
  • Tutorials
  • Educator Hub
Live
  • Live Sessions
  • Previously recorded
Education Plans
  • Students
  • Educators
  • Institutions
  • Certifications
Resources
  • Unity Asset Store
  • Community
  • Documentation
  • Unity FAQ
  • Learn FAQ
Unity
  • Unity.com
  • Newsletter
  • Blog
  • Events
  • Unity Play
Copyright © 2026 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.