Initial Commit

This commit is contained in:
2026-03-16 14:38:46 +02:00
commit b8f7327a21
2327 changed files with 253610 additions and 0 deletions
@@ -0,0 +1,37 @@
using UnityEngine;
namespace Zenject.SpaceFighter
{
public class PlayerFacade : MonoBehaviour
{
Player _model;
PlayerDamageHandler _hitHandler;
[Inject]
public void Construct(Player player, PlayerDamageHandler hitHandler)
{
_model = player;
_hitHandler = hitHandler;
}
public bool IsDead
{
get { return _model.IsDead; }
}
public Vector3 Position
{
get { return _model.Position; }
}
public Quaternion Rotation
{
get { return _model.Rotation; }
}
public void TakeDamage(Vector3 moveDirection)
{
_hitHandler.TakeDamage(moveDirection);
}
}
}