mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-27 18:08:09 +08:00
v0.10 with bug fixes
v0.10 with bug fixes
This commit is contained in:
1 parent
0d51628be3
commit
44fa306fcc
5 files changed
+11
-10
No files matched your search
@@ -14,6 +14,7 @@ namespace Pal3.Actor
|
||||
using Core.DataLoader;
|
||||
using Core.DataReader.Mv3;
|
||||
using Core.Extensions;
|
||||
using Core.Services;
|
||||
using MetaData;
|
||||
using Renderer;
|
||||
using Script.Waiter;
|
||||
@@ -47,8 +48,6 @@ namespace Pal3.Actor
|
||||
private Rigidbody _rigidbody;
|
||||
private CapsuleCollider _collider;
|
||||
|
||||
private GameState _currentState = GameState.Cutscene;
|
||||
|
||||
public void Init(Actor actor, Color tintColor)
|
||||
{
|
||||
_actor = actor;
|
||||
@@ -166,7 +165,8 @@ namespace Pal3.Actor
|
||||
_collider.height = bounds.size.y;
|
||||
_collider.radius = bounds.size.x * 0.5f;
|
||||
|
||||
ToggleCollisionDetectionBasedOnGameState(_currentState);
|
||||
var currentGameState = ServiceLocator.Instance.Get<GameStateManager>().GetCurrentState();
|
||||
ToggleCollisionDetectionBasedOnGameState(currentGameState);
|
||||
}
|
||||
|
||||
private void SetupRigidBody()
|
||||
@@ -177,7 +177,8 @@ namespace Pal3.Actor
|
||||
_rigidbody.constraints = RigidbodyConstraints.FreezePositionY |
|
||||
RigidbodyConstraints.FreezeRotation;
|
||||
|
||||
ToggleCollisionDetectionBasedOnGameState(_currentState);
|
||||
var currentGameState = ServiceLocator.Instance.Get<GameStateManager>().GetCurrentState();
|
||||
ToggleCollisionDetectionBasedOnGameState(currentGameState);
|
||||
}
|
||||
|
||||
private void CreateShadowProjector()
|
||||
@@ -340,7 +341,6 @@ namespace Pal3.Actor
|
||||
|
||||
public void Execute(GameStateChangedNotification command)
|
||||
{
|
||||
_currentState = command.NewState;
|
||||
ToggleCollisionDetectionBasedOnGameState(command.NewState);
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace Pal3
|
||||
private IEnumerator InitResource(string gameRootPath)
|
||||
{
|
||||
loadingText.text = "Loading game assets...";
|
||||
yield return new WaitForSeconds(0.2f); // Give some time for UI to render
|
||||
yield return new WaitForSeconds(0.1f); // Give some time for UI to render
|
||||
|
||||
// Init file system
|
||||
var fileSystem = InitFileSystem(gameRootPath);
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Pal3.MetaData
|
||||
public const string AppNameCNFull = "仙剑奇侠传三外传";
|
||||
#endif
|
||||
|
||||
public const string Version = "0.9";
|
||||
public const string Version = "0.10";
|
||||
|
||||
public const string CompanyName = "OSS";
|
||||
|
||||
|
||||
@@ -101,9 +101,10 @@ namespace Pal3.Scene.SceneObjects
|
||||
|
||||
// TODO: This is to prevent player from entering back to previous
|
||||
// scene when holding the stick while transferring between scenes.
|
||||
// We simply disable the auto trigger for the first 1 second after
|
||||
// We simply disable the auto trigger for a short time window after
|
||||
// a fresh scene load.
|
||||
if (Time.realtimeSinceStartupAsDouble - _awakeTime < 1f) return;
|
||||
var disableTime = _autoTrigger.Info.Type == ScnSceneObjectType.Door ? 1f : 0.5f;
|
||||
if (Time.realtimeSinceStartupAsDouble - _awakeTime < disableTime) return;
|
||||
|
||||
if (!_wasTriggered)
|
||||
{
|
||||
|
||||
@@ -134,7 +134,7 @@ PlayerSettings:
|
||||
16:10: 1
|
||||
16:9: 1
|
||||
Others: 1
|
||||
bundleVersion: 0.9
|
||||
bundleVersion: 0.10
|
||||
preloadedAssets:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
|
||||
Reference in new issue
Block a user