working on humbie still
This commit is contained in:
@@ -4,6 +4,7 @@ using RebootKit.Engine.Main;
|
||||
using RebootKit.Engine.Network;
|
||||
using RebootKit.Engine.Simulation;
|
||||
using RebootReality.jelycho.InfectedArea;
|
||||
using RebootReality.jelycho.Main;
|
||||
using Unity.Mathematics;
|
||||
using UnityEngine;
|
||||
using UnityEngine.AddressableAssets;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using RebootKit.Engine.Network;
|
||||
using RebootKit.Engine.Simulation;
|
||||
using RebootReality.jelycho.Actors;
|
||||
using RebootReality.jelycho.Enemies;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -24,7 +25,7 @@ namespace RebootReality.jelycho.Beacons {
|
||||
}
|
||||
}
|
||||
|
||||
public class MotherActor : Actor, IKillable {
|
||||
public class MotherActor : Actor, IHasHealth {
|
||||
MotherActorData m_ActorData = new MotherActorData();
|
||||
|
||||
[field: SerializeField] public Transform GutConnector { get; private set; }
|
||||
@@ -35,16 +36,24 @@ namespace RebootReality.jelycho.Beacons {
|
||||
protected override IActorData CreateActorData() {
|
||||
return m_ActorData;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// @MARK: IKillable
|
||||
//
|
||||
// @MARK: IHasHealth
|
||||
//
|
||||
public ulong Health {
|
||||
get {
|
||||
return m_ActorData.Health;
|
||||
}
|
||||
|
||||
private set {
|
||||
m_ActorData.Health = value;
|
||||
}
|
||||
}
|
||||
|
||||
[field: SerializeField] public ulong MaxHealth { get; private set; }
|
||||
|
||||
public bool IsAlive() {
|
||||
return m_ActorData.Health > 0;
|
||||
}
|
||||
|
||||
public ulong OnHit(Actor attacker, ulong damage) {
|
||||
return damage;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user