当前位置: 首页 > wzjs >正文

计算机系毕设代做网站百度系app有哪些

计算机系毕设代做网站,百度系app有哪些,移动端和pc端的区别,wordpress首页html在哪里修改一般情况下,在非攻击状态武器时不会有碰撞的。则要在进行攻击的时候进行碰撞检测,所以使用动画通知进行开启与关闭碰撞检测。 1.新建一个接口 然后重写一个虚函数 public:virtual UPawnCombatComponent* GetPawnCombatComponent() const 0; 新建一个空…

一般情况下,在非攻击状态武器时不会有碰撞的。则要在进行攻击的时候进行碰撞检测,所以使用动画通知进行开启与关闭碰撞检测。

1.新建一个接口

然后重写一个虚函数

public:virtual UPawnCombatComponent* GetPawnCombatComponent() const = 0;

 新建一个空文件WarriorEnumTypes用于存储枚举

#pragma onceUENUM()
enum class EXMBWarriorConfirmType : uint8
{Yes,No
};UENUM()
enum class EWarriorValidType : uint8
{Valid,Invalid};

2.然后在CharacterBase内,继承接口以及覆写函数

public:
//Begin IPawnCombatInterface Interfacevirtual UPawnCombatComponent* GetPawnCombatComponent() const override;//End IPawnCombatInterface Interface
UPawnCombatComponent* ACharacterBase::GetPawnCombatComponent() const
{return nullptr;
}

进入XMBCharacter和EnemyCharacterBase内做同样的事

//Begin IPawnCombatInterface Interfacevirtual UPawnCombatComponent* GetPawnCombatComponent() const override;//End IPawnCombatInterface Interface
UPawnCombatComponent* AXMBCharacter::GetPawnCombatComponent() const
{return XMBCombatComponent;
}
//Begin IPawnCombatInterface Interfacevirtual UPawnCombatComponent* GetPawnCombatComponent() const override;//End IPawnCombatInterface Interface
UPawnCombatComponent* AEnemyCharacterBase::GetPawnCombatComponent() const
{return EnemyCombatComponent;
}

3.进入Library内,

	static UPawnCombatComponent* NativeGetPawnCombatComponentFromActor(AActor* InActor);UFUNCTION(BlueprintCallable, Category = "XMBWorrior|FunctionLibrary", meta = (DisplayName = "Get Pawn Combat Component From Actor", ExpandEnumAsExecs = "OutValidType"))static UPawnCombatComponent* BP_GetPawnCombatComponentFromActor(AActor* InActor, EWarriorValidType& OutValidType);
UPawnCombatComponent*UXMBWarriorFunctionLibrary::NativeGetPawnCombatComponentFromActor(AActor* InActor)
{
check(InActor);
if (IPawnCombatInterface* PawnCombatInterface = Cast<IPawnCombatInterface>(InActor)){return PawnCombatInterface->GetPawnCombatComponent();}
return nullptr;
}UPawnCombatComponent* UXMBWarriorFunctionLibrary::BP_GetPawnCombatComponentFromActor(AActor* InActor,EWarriorValidType& OutValidType)
{UPawnCombatComponent* CombatComponent =  NativeGetPawnCombatComponentFromActor(InActor);
OutValidType = CombatComponent ? EWarriorValidType::Valid : EWarriorValidType::Invalid;
return CombatComponent;
}

4。启动项目,创建动画状态通知

在Begin内连图

http://www.dtcms.com/wzjs/125768.html

相关文章:

  • 做汽车养护的网站怎么样进行网络推广
  • vps服务器的iis网站厦门网站制作全程服务
  • 门户网站建设和检务公开整改百度一下首页设为主页
  • 西安曲江文化园区建设开发有限公司网站西安百度推广运营公司
  • 说做网站被收债武汉服装seo整站优化方案
  • 丹徒区建设局网站百度关键词排名代做
  • 当阳网站建设电话自媒体营销的策略和方法
  • 北京市建设厅门户网站5118大数据平台官网
  • 企业展厅 设计 公司成都网络优化托管公司
  • 网站开发通用流程站内搜索引擎
  • 企业营销网站怎样做百度推广代理赚钱
  • 做暧暖爱视频网站建站平台哪个比较权威
  • 做外贸必备网站推荐6个免费国外自媒体平台
  • 网站开发案例图片seo核心技术排名
  • 网站建设方案合同品牌广告图片
  • 网站建设推广报价单个人接广告的平台
  • 旅游网站建设报价单电影站的seo
  • 上海官方网站建设0元做游戏代理
  • 做家教网站的资源是什么李守洪排名大师怎么样
  • 网站的提交重置按钮怎么做seo优化运营
  • 一个网站的成本营销活动方案模板
  • 钓鱼网站建设百度登录注册
  • 建站精灵网站模板十八未成年禁用免费app
  • 做鸡人网站广告推广赚钱在哪接
  • 儿童网站欣赏国际最新消息
  • 做网站用apache还是nginxseo招聘网
  • 提交图片的网站要怎么做国际新闻热点事件
  • 重庆江北网站建设百度收录规则2022
  • 如何查看网站服务器系统营业推广的目标通常是
  • 云南商城网站建设北京网站优化哪家好