
1.搭建地藏测试场景 (1.放置单向平台 (2.限制摄像机范围 (3.设置相机跟踪 (4.放置图片素材 2.编写地藏boss逻辑 (1.继承自Enemy(内含基本的变量和事件) (2.当玩家进入戒备范围,startContinue攻击功能 3.创建塞钱箱脚本,目前为空,仅调试用 4.编写召唤攻击逻辑 (1.编写工具类,投掷点,记录投掷力度、方向。 (2.在地藏中保存两套投掷点 (3.攻击时判定玩家位置,进而决定要使用哪一套投掷点 (4.从投掷点获取信息,然后初始化生成的爱欲品 (5.等待召唤攻击的后摇时间,然后发信号表示攻击结束,进入下一个循环 至此,佛教Boss的召唤攻击方式基本开发完毕
17 lines
379 B
C#
17 lines
379 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using DG.Tweening;
|
|
|
|
/// <summary>
|
|
/// 撞钟类,控制地藏头上的钟
|
|
/// </summary>
|
|
public class Bell : MonoBehaviour
|
|
{
|
|
void Start(){
|
|
Tweener tweener = transform.DOShakePosition(5f,0.3f,1,150,false,false);
|
|
tweener.SetLoops(-1);
|
|
tweener.SetEase(Ease.InQuad);
|
|
}
|
|
}
|