摘要: 在敌人物体身上添加 Slider,将Background设置为黑色,FIllarea设置为绿色,调整滑块大小。 生命值减少代码设计如下: using System.Collections; using System.Collections.Generic; using UnityEngine; us 阅读全文
posted @ 2023-07-20 17:16 Kellen_Gram 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1.重复子字符串问题分析 459. 重复的子字符串 - 力扣(LeetCode) 有点难度,值得反复刷;本质找 循环子串问题,可以 暴力求解或者移位 2.解法 2.0 暴力求解 设 :字符串 S 由 s'重复构成,则 S=s's's's's's' (n个s' , s' 长度为 i ); 则 :S长度 阅读全文
posted @ 2023-07-20 09:29 Kellen_Gram 阅读(18) 评论(0) 推荐(0) 编辑