摘要: 006_2D Ruby 项目脚本 CogBulletController.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class CogBulletControlle 阅读全文
posted @ 2024-12-29 21:09 爱吃冰激凌的黄某某 阅读(27) 评论(0) 推荐(0)
摘要: 005_添加动画、子弹碰撞、无敌时间 RubyController using System.Collections; using System.Collections.Generic; using Unity.VisualScripting; using UnityEngine; using Un 阅读全文
posted @ 2024-12-29 21:09 爱吃冰激凌的黄某某 阅读(31) 评论(0) 推荐(0)
摘要: 004_生命修改和触发器 生命修改 using System.Collections; using System.Collections.Generic; using Unity.VisualScripting; using UnityEngine; using UnityEngine.Player 阅读全文
posted @ 2024-12-29 21:09 爱吃冰激凌的黄某某 阅读(27) 评论(0) 推荐(0)
摘要: 003_碰撞消抖 通过获取刚体组件的位置消抖 public class RubyController : MonoBehaviour { // 将速度暴露出来,使其可调 public float speed = 4f; //声明刚体对象 Rigidbody2D rigidbody2D; //获取用户 阅读全文
posted @ 2024-12-29 21:09 爱吃冰激凌的黄某某 阅读(10) 评论(0) 推荐(0)