tmp
This commit is contained in:
parent
75119a5510
commit
5bbd6b550c
21
Assets/Scripts/Core/Game/GameManager_RollInitiativeState.cs
Normal file
21
Assets/Scripts/Core/Game/GameManager_RollInitiativeState.cs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
namespace MedievalParty.Core.Game
|
||||||
|
{
|
||||||
|
public class GameManager_RollInitiativeState: IState
|
||||||
|
{
|
||||||
|
|
||||||
|
public void OnEnter()
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnExit()
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnUpdate()
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 43bf2b39ebe04f61837d8f3d594d3bbe
|
||||||
|
timeCreated: 1764264245
|
||||||
@ -13,6 +13,8 @@ namespace MedievalParty.Core
|
|||||||
{
|
{
|
||||||
public static GameManager Instance { get; private set; }
|
public static GameManager Instance { get; private set; }
|
||||||
|
|
||||||
|
public event EventHandler onRollInitiative;
|
||||||
|
|
||||||
[Header("Spawn")]
|
[Header("Spawn")]
|
||||||
[SerializeField] private PlayerObject playerPrefab;
|
[SerializeField] private PlayerObject playerPrefab;
|
||||||
[SerializeField] private AIObject aiPrefab;
|
[SerializeField] private AIObject aiPrefab;
|
||||||
|
|||||||
@ -1,12 +1,17 @@
|
|||||||
using UnityEngine;
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
namespace MedievalParty.Entity
|
namespace MedievalParty.Entity
|
||||||
{
|
{
|
||||||
public abstract class EntityObject: MonoBehaviour
|
public abstract class EntityObject: MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public static event EventHandler<int> onAnyEntityNumberRoll;
|
||||||
|
|
||||||
public void SetCharacter(EntitySO entity)
|
public void SetCharacter(EntitySO entity)
|
||||||
{
|
{
|
||||||
Instantiate(entity.visual, transform);
|
Instantiate(entity.visual, transform);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void NumberRolled(int number) => onAnyEntityNumberRoll?.Invoke(this, number);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
22
Assets/Scripts/Entity/Player/PlayerObject_RollDiceState.cs
Normal file
22
Assets/Scripts/Entity/Player/PlayerObject_RollDiceState.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
using MedievalParty.Core;
|
||||||
|
|
||||||
|
namespace MedievalParty.Entity.Player
|
||||||
|
{
|
||||||
|
public class PlayerObject_RollDiceState: IState
|
||||||
|
{
|
||||||
|
public void OnEnter()
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnExit()
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnUpdate()
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3b9214e204e847178ba9333955b0f265
|
||||||
|
timeCreated: 1764264682
|
||||||
Loading…
x
Reference in New Issue
Block a user