added gamescreen UI and simple start menu
This commit is contained in:
@@ -8,5 +8,6 @@ namespace Darkmatter.Core
|
||||
public void PlayMovementAnim(Vector2 velocity);
|
||||
public void PlayReloadAnim(IReloadableWeapon reloadableWeapon);
|
||||
void PlayShootAnim();
|
||||
void PlayDeadAnim();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IPlayerPawn
|
||||
public interface IPlayerPawn : IDamageable
|
||||
{
|
||||
bool isGrounded { get; }
|
||||
|
||||
|
||||
@@ -11,5 +11,8 @@ namespace Darkmatter.Core
|
||||
public Vector2 moveInput { get; }
|
||||
public Vector2 lookInput { get; }
|
||||
public bool isShooting { get; }
|
||||
|
||||
public void DisableInput();
|
||||
public void EnableInput();
|
||||
}
|
||||
}
|
||||
|
||||
8
Assets/Darkmatter/Code/Core/Contracts/UI.meta
Normal file
8
Assets/Darkmatter/Code/Core/Contracts/UI.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb18939ec56040244812046623bfe046
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IGameScreenController
|
||||
{
|
||||
|
||||
void UpdateFireableBulletCount(int bulletCount);
|
||||
void UpdateRemainingZombiesCount(int zombiesCount);
|
||||
void UpdateTotalZombiesCount(int totalZombiesCount);
|
||||
void ShowGameOverText();
|
||||
void ShowPlayerHealth(int health);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e6871718dd9c3244eac4e4eed90a289f
|
||||
@@ -13,6 +13,6 @@ MonoBehaviour:
|
||||
m_Name: EnemyConfigSO
|
||||
m_EditorClassIdentifier: CoreAssembly::Darkmatter.Core.EnemyConfigSO
|
||||
walkSpeed: 1
|
||||
chaseSpeed: 2
|
||||
visionRange: 40
|
||||
chaseSpeed: 4
|
||||
visionRange: 50
|
||||
attackRange: 3
|
||||
|
||||
@@ -71,5 +71,15 @@ namespace Darkmatter.Core
|
||||
OnReloadPerformed?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
public void DisableInput()
|
||||
{
|
||||
action.Player.Disable();
|
||||
}
|
||||
|
||||
public void EnableInput()
|
||||
{
|
||||
action.Player.Enable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user