update core

This commit is contained in:
2024-10-24 22:45:29 +08:00
parent 2181e42066
commit b56a237c6b
9 changed files with 44 additions and 5965 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -20,8 +20,8 @@
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/> <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/> <uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>
<!--必要权限,解决安全风险漏洞,发送和注册广播事件需要调用带有传递权限的接口--> <!--必要权限,解决安全风险漏洞,发送和注册广播事件需要调用带有传递权限的接口-->
<permission android:name="com.cs.shengxiao.openadsdk.permission.TT_PANGOLIN" android:protectionLevel="signature"/> <permission android:name="com.cs.taptapGj.openadsdk.permission.TT_PANGOLIN" android:protectionLevel="signature"/>
<uses-permission android:name="com.cs.shengxiao.openadsdk.permission.TT_PANGOLIN"/> <uses-permission android:name="com.cs.taptapGj.openadsdk.permission.TT_PANGOLIN"/>
<application> <application>
<activity android:name="com.unity3d.player.UnityPlayerActivity" <activity android:name="com.unity3d.player.UnityPlayerActivity"

View File

@@ -173,7 +173,7 @@ namespace Game.Component
) )
); );
#else #else
public bool HasRunaway => MapContent.Instance.IsRunaway ?? false; public bool HasRunaway => MapContent.Instance?.IsRunaway ?? false;
public float CurMoveSpeed => (MapContent.Instance.MoveGlobalOffset) * this._curMoveSpeedOffset * (this.MaxMoveSpeed * public float CurMoveSpeed => (MapContent.Instance.MoveGlobalOffset) * this._curMoveSpeedOffset * (this.MaxMoveSpeed *
(1 + (1 +

View File

@@ -1,4 +1,6 @@
using Unity.VisualScripting; using Cinemachine.Utility;
using Framework.Utils.Extend;
using Unity.VisualScripting;
using UnityEngine; using UnityEngine;
namespace Game.Component.EnemyFSM_AI namespace Game.Component.EnemyFSM_AI
@@ -25,7 +27,7 @@ namespace Game.Component.EnemyFSM_AI
private Vector2 CreateRandomPos () private Vector2 CreateRandomPos ()
{ {
var point = this.Entity.CreatePos; var point = this.Entity.CreatePos;
var area = this.Entity.WalkArea.Abs (); var area = this.Entity.WalkArea.ABS ();
//随机生成一个位置 //随机生成一个位置
var x = Random.Range(point.x - area.x / 2, point.x + area.x / 2); var x = Random.Range(point.x - area.x / 2, point.x + area.x / 2);
var y = Random.Range(point.y - area.y / 2, point.y + area.y / 2); var y = Random.Range(point.y - area.y / 2, point.y + area.y / 2);

View File

@@ -6,11 +6,10 @@ namespace Game.Component.Map
{ {
public class MovePathGroup : MonoBehaviour public class MovePathGroup : MonoBehaviour
{ {
private List<Vector3> _pathList; private List<Vector3> _pathList;
public List<Transform> PathList;
#if UNITY_EDITOR #if UNITY_EDITOR
public List<Transform> PathList;
private void OnDrawGizmos () private void OnDrawGizmos ()
{ {

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 94ff06adb78d8f140b7e6b3040f8f64b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -5,6 +5,11 @@ namespace Framework.Utils.Extend
{ {
public static class VectorExtend public static class VectorExtend
{ {
public static Vector2 ABS (this Vector2 vector2)
{
return new Vector2 (math.abs (vector2.x) , math.abs (vector2.y));
}
public static Vector3 SetZ (this Vector3 vector3 , float z) public static Vector3 SetZ (this Vector3 vector3 , float z)
{ {
return new Vector3 (vector3.x , vector3.y , z); return new Vector3 (vector3.x , vector3.y , z);

View File

@@ -12,8 +12,8 @@ PlayerSettings:
targetDevice: 2 targetDevice: 2
useOnDemandResources: 0 useOnDemandResources: 0
accelerometerFrequency: 60 accelerometerFrequency: 60
companyName: cs-network companyName: foldcc
productName: TaptapGJ_CS productName: "\u6D6E\u5149"
defaultCursor: {fileID: 0} defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0} cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}