You've already forked taptap2024_GJ_chidouren
update core
This commit is contained in:
@@ -166,7 +166,7 @@ namespace Game.Component
|
||||
#if UNITY_EDITOR
|
||||
public bool HasRunaway => MapContent.Instance?.IsRunaway ?? false;
|
||||
|
||||
public float CurMoveSpeed => (MapContent.Instance?.MoveGlobalOffset ?? 0) * this._curMoveSpeedOffset * (this.MaxMoveSpeed *
|
||||
public float CurMoveSpeed => (MapContent.Instance?.EnemyMoveGlobalOffset ?? 0) * this._curMoveSpeedOffset * (this.MaxMoveSpeed *
|
||||
(1 +
|
||||
( this._expTimeHandler?.IsPlaying ?? false
|
||||
? (1 - this._expTimeHandler.CurProgress) * this._expSpeedOffset
|
||||
@@ -176,7 +176,7 @@ namespace Game.Component
|
||||
#else
|
||||
public bool HasRunaway => MapContent.Instance?.IsRunaway ?? false;
|
||||
|
||||
public float CurMoveSpeed => (MapContent.Instance.MoveGlobalOffset) * this._curMoveSpeedOffset * (this.MaxMoveSpeed *
|
||||
public float CurMoveSpeed => (MapContent.Instance.EnemyMoveGlobalOffset) * this._curMoveSpeedOffset * (this.MaxMoveSpeed *
|
||||
(1 +
|
||||
( this._expTimeHandler?.IsPlaying ?? false
|
||||
? (1 - this._expTimeHandler.CurProgress) * this._expSpeedOffset
|
||||
|
||||
@@ -1,13 +1,21 @@
|
||||
using XFFSM;
|
||||
using UnityEngine;
|
||||
using XFFSM;
|
||||
|
||||
namespace Game.Component.EnemyFSM_AI
|
||||
{
|
||||
public class Sleep : EnemyFSMState
|
||||
{
|
||||
public override void OnExit ()
|
||||
{
|
||||
this.Entity.GetComponent<Collider2D> ().enabled = true;
|
||||
}
|
||||
|
||||
public override void OnEnter ()
|
||||
{
|
||||
// this.Entity.
|
||||
this.Entity.AnimState.SetState (EnemyAnimStateType.Idle);
|
||||
SetAiTarget (this.Entity.CreatePos);
|
||||
this.Entity.GetComponent<Collider2D> ().enabled = false;
|
||||
//此处可设置角色动画为沉睡状态
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using Framework.Audio;
|
||||
using Framework.Timer;
|
||||
using Game.EventDefine;
|
||||
using UniFramework.Event;
|
||||
using Unity.Mathematics;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.Component
|
||||
@@ -17,11 +18,14 @@ namespace Game.Component
|
||||
public bool IsActiveGame;
|
||||
|
||||
private float _moveGlobalOffset = 1;
|
||||
|
||||
private float _expGlobalOffset = 0;
|
||||
|
||||
//玩家位置
|
||||
public Vector2 PlayerPosition { private set; get; }
|
||||
public bool IsRunaway { get ; private set ; }
|
||||
public float MoveGlobalOffset => this._moveGlobalOffset;
|
||||
public Vector2 PlayerPosition { private set; get; }
|
||||
public bool IsRunaway { get ; private set ; }
|
||||
public float MoveGlobalOffset => this._moveGlobalOffset;
|
||||
public float EnemyMoveGlobalOffset => math.clamp (this._moveGlobalOffset - this._expGlobalOffset , 0 , 1f);
|
||||
|
||||
public bool IsPause
|
||||
{
|
||||
@@ -81,6 +85,7 @@ namespace Game.Component
|
||||
|
||||
public void ResetGame ()
|
||||
{
|
||||
this._expGlobalOffset = Mathf.Clamp (this.ScenePart.LossCount * 0.025f , 0 , 0.25f);
|
||||
this.PlayerEntity.gameObject.SetActive (false);
|
||||
this.IsPause = false;
|
||||
this._RunawayTimeHandler?.Kill ();
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace Game.Component
|
||||
|
||||
[LabelText ("当前完成数:")] private int _currentConditionNumber = 0;
|
||||
|
||||
public int LossCount;
|
||||
|
||||
public int CurrentConditionNumber => this._currentConditionNumber;
|
||||
|
||||
private List<EnemyEntity> _enemyEntities;
|
||||
|
||||
@@ -19,9 +19,10 @@ namespace Game.FsmNode
|
||||
CameraEffectUtils.Instance.SetAberration (1f , 0.5f);
|
||||
CameraEffectUtils.Instance.SetGameCamBlur (0.35f , 0.5f , null);
|
||||
AudioManager.Instance.PlaySoundEffect (SeAudio.OverGame_Fail);
|
||||
GameManager.Instance.Vibrator (VibratorScale.Normal);
|
||||
GameEventDefine.GlobalRunaway.SendMessage (10);
|
||||
await UniTask.Delay (3000);
|
||||
|
||||
MapContent.Instance.ScenePart.LossCount ++;
|
||||
this.stateMachineRunner.OpenState (GameState.StartGame);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@ namespace Game.FsmNode
|
||||
{
|
||||
RoomManager.Instance.LoadScenePart (RoomManager.Instance.PartIndex);
|
||||
}
|
||||
// AudioManager.Instance.PlayBGM(BgmAudio.NormalBgm , 0.65f);
|
||||
GameEventDefine.ChangeGameFsm.SendMessage (GameState.FightGame , true);
|
||||
UIManager.Instance.CloseLoading (null);
|
||||
MapContent.Instance.ResetGame ();
|
||||
// AudioManager.Instance.PlayBGM(BgmAudio.NormalBgm , 0.65f);
|
||||
CameraManager.Instance.SetCameraState (CameraManager.CameraState.Player_Near);
|
||||
GameEventDefine.ChangeGameFsm.SendMessage (GameState.FightGame , true);
|
||||
}
|
||||
|
||||
protected override void OnExit ()
|
||||
|
||||
@@ -46,7 +46,7 @@ Material:
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- Vector1_c9f2135c9d254951b22c018d295f8558: 0.003
|
||||
- _blurOffset: 0.022401923
|
||||
- _blurOffset: 0.0076103834
|
||||
m_Colors: []
|
||||
m_BuildTextureStacks: []
|
||||
--- !u!114 &268278646524644520
|
||||
|
||||
@@ -144,7 +144,6 @@ namespace StateSystem.State
|
||||
{
|
||||
CameraEffectUtils.Instance.SetAberration (0f , 0f);
|
||||
CameraEffectUtils.Instance.SetGameCamBlur (0f , 0f , null);
|
||||
BeginStaticPanel.ReleasePanel ();
|
||||
if (HasTempGame)
|
||||
{
|
||||
this.stateMachineRunner.OpenState (GameGlobalState.GameRoom);
|
||||
@@ -153,6 +152,7 @@ namespace StateSystem.State
|
||||
{
|
||||
UIManager.Instance.OpenView (UIPanel.InitTipPanel);
|
||||
}
|
||||
BeginStaticPanel.ReleasePanel ();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,10 +34,10 @@ namespace Views
|
||||
this._time = 1;
|
||||
}
|
||||
#if !UNITY_EDITOR
|
||||
VibratorImp.Instance.Vibrator_Normal (0.2f , (int)(math.clamp (this._time , 0 , 1) * 50));
|
||||
VibratorImp.Instance.Vibrator_Normal (0.35f , (int)(math.clamp (this._time , 0 , 1) * 300));
|
||||
#endif
|
||||
// GameManager.Instance.Vibrator (VibratorScale.Small);
|
||||
CameraImpulseUtils.Instance.UniformImpulseCamera (0.5f , math.clamp (this._time , 0 , 2));
|
||||
CameraImpulseUtils.Instance.UniformImpulseCamera (0.5f , math.clamp (this._time , 0 , 5));
|
||||
}
|
||||
|
||||
private void DoUpdate ()
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.StateSystem;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Framework.Audio;
|
||||
using Framework.UI;
|
||||
using Game;
|
||||
@@ -51,11 +52,12 @@ namespace Views
|
||||
this.table1.gameObject.SetActive (true);
|
||||
}
|
||||
|
||||
private void OnTable4 (PlayableDirector obj)
|
||||
private async void OnTable4 (PlayableDirector obj)
|
||||
{
|
||||
this._animatorStateUpdate.state = 7;
|
||||
this.table3.gameObject.SetActive (false);
|
||||
this.table4.gameObject.SetActive (true);
|
||||
await UniTask.Delay (5000);
|
||||
this._closeBtn.gameObject.SetActive (true);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,15 +31,17 @@ namespace Views{
|
||||
_toGame.gameObject.SetActive (false);
|
||||
string key = "CompleteCount";
|
||||
await UniTask.Delay (1000);
|
||||
if (!PlayerPrefs.HasKey ("toApp") && PlayerPrefs.GetInt (key , 0) > 0)
|
||||
// !PlayerPrefs.HasKey ("toApp") &&
|
||||
if ( PlayerPrefs.GetInt (key , 0) > 0)
|
||||
{
|
||||
//提醒玩家评论
|
||||
UIManager.Instance.OpenTip ("本项目由" + "Taptap聚光灯挑战赛@2024".ToColorString (new Color (1f, 0.38f, 0f)) + "活动在规定的21天时间完成制作\n你的评价将是对我们最大的支持!点击确认查看游戏详情页!" ,
|
||||
UIManager.Instance.OpenTip ("本项目由" + "Taptap聚光灯GameJam@2024".ToColorString (new Color (1f, 0.38f, 0f)) + "活动在规定的21天时间完成制作\n你的评价将是对我们最大的支持!点击确认查看游戏详情页!" ,
|
||||
() =>
|
||||
{
|
||||
PlayerPrefs.SetInt ("toApp" , 1);
|
||||
LaunchAppUtils.ToTapTapTargetApp(GameGlobalConfig.Instance.TapUrl);
|
||||
LaunchAppUtils.ToTapTapTargetApp(GameGlobalConfig.Instance.TapAppUrl);
|
||||
} , () => { });
|
||||
LaunchAppUtils.CheckTargetApp ("taptap.com");
|
||||
}
|
||||
this._playableDirector = parameters.GetValue<PlayableDirector>();
|
||||
MapContent.Instance.Pathfinder.Scan ();
|
||||
|
||||
Reference in New Issue
Block a user