Unity_Chase2D:Unity2D,追逐玩家的敌人

上传者: 42153691 | 上传时间: 2023-03-28 08:45:22 | 文件大小: 821KB | 文件类型: ZIP
C#
[Unity 2D]敌人和跟随者追逐玩家:敌人和跟随者追逐玩家 概述概述 描述(1) 敌人(红色)追随玩家(白色),您可以使用箭头键移动玩家,敌人是从预制件中实例化的。 敌人(红色)追赶您的飞机(白色)。您可以使用光标键来操作自己的机器。敌人是从预制实例化的。 示范(1) 描述(2) 除(1)以外,跟随者(蓝色)跟随玩家,跟随者也追逐玩家,但距离限制为固定距离,跟随者的速度与玩家相同,在其中声明为全局变量“ private static”播放器.cs。 除了(1)之外,您自己的计算机还具有从属(蓝色)。 跟随者跟踪您的飞机,同时与飞机保持一定距离。 跟随者速度使用与您自己相同的值。Player.cs中的private static将您自己计算机的速度设置为全局变量。 示范(2) 描述(3) 除了(2)之外,跟随者(绿色)跟随播放器。绿色跟随者由带有刚体2d.AddForce()的反

文件下载

资源详情

[{"title":"( 40 个子文件 821KB ) Unity_Chase2D:Unity2D,追逐玩家的敌人","children":[{"title":"Unity_Chase2D-master","children":[{"title":"Assets","children":[{"title":"Prefab.meta <span style='color:#111;'> 107B </span>","children":null,"spread":false},{"title":"Material","children":[{"title":"green_material.mat.meta <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"red_material.mat.meta <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"blue_material.mat.meta <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"blue_material.mat <span style='color:#111;'> 690B </span>","children":null,"spread":false},{"title":"green_material.mat <span style='color:#111;'> 689B </span>","children":null,"spread":false},{"title":"red_material.mat <span style='color:#111;'> 678B </span>","children":null,"spread":false}],"spread":true},{"title":"Scene.meta <span style='color:#111;'> 107B </span>","children":null,"spread":false},{"title":"Script","children":[{"title":"Manager.cs <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"Player.cs.meta <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"Player.cs <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"Manager.cs.meta <span style='color:#111;'> 178B </span>","children":null,"spread":false}],"spread":true},{"title":"Prefab","children":[{"title":"ForceFollower.prefab <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"Enemy.prefab <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"Enemy.prefab.meta <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"Follower.prefab.meta <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"Follower.prefab <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"ForceFollower.prefab.meta <span style='color:#111;'> 95B </span>","children":null,"spread":false}],"spread":true},{"title":"Scene","children":[{"title":"main.unity <span style='color:#111;'> 8.46KB </span>","children":null,"spread":false},{"title":"main.unity.meta <span style='color:#111;'> 90B </span>","children":null,"spread":false}],"spread":true},{"title":"Material.meta <span style='color:#111;'> 107B </span>","children":null,"spread":false},{"title":"Script.meta <span style='color:#111;'> 107B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"Unity_Chase2D_control.gif <span style='color:#111;'> 729.89KB </span>","children":null,"spread":false},{"title":"ProjectSettings","children":[{"title":"Physics2DSettings.asset <span style='color:#111;'> 854B </span>","children":null,"spread":false},{"title":"ProjectSettings.asset <span style='color:#111;'> 6.70KB </span>","children":null,"spread":false},{"title":"TagManager.asset <span style='color:#111;'> 791B </span>","children":null,"spread":false},{"title":"DynamicsManager.asset <span style='color:#111;'> 665B </span>","children":null,"spread":false},{"title":"EditorBuildSettings.asset <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"NavMeshLayers.asset <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"InputManager.asset <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"QualitySettings.asset <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"EditorSettings.asset <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"GraphicsSettings.asset <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"AudioManager.asset <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"NetworkManager.asset <span style='color:#111;'> 151B </span>","children":null,"spread":false},{"title":"TimeManager.asset <span style='color:#111;'> 175B </span>","children":null,"spread":false}],"spread":false},{"title":"Unity_Chase2D_ef.gif <span style='color:#111;'> 188.60KB </span>","children":null,"spread":false},{"title":"Unity_Chase2D.gif <span style='color:#111;'> 118.14KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明