摘要:
状态机与抽象类 观察如下代码: public class AttackFinish : StateMachineBehaviour { // OnStateEnter is called when a transition starts and the state machine starts to 阅读全文
摘要:
一、类的继承 在Scripts下创建Enemy文件夹,里面再创建两个C#文件 将Boar文件内的代码修改为以下代码,:后的是Enemy,即继承了Enemy类 public class Boar : Enemy { } 在Enemy内,编写基本属性 public class Enemy : MonoB 阅读全文